[pmwiki-devel] strange FmtPV behavior...
The Editor
editor at fast.st
Thu Apr 5 08:54:41 CDT 2007
Any explanation why the following give different results?
#1)
$FmtPV['$orderpage'] = 'ZAPorderpage()';
function ZAPorderpage() {
$OrderGroup = ZAPconfig('Order', 'Order');
$OrderName = strftime("%Y%j", time()) . "-" .
strtoupper(substr(session_id(), 0, 16));
return $OrderGroup . "." . $OrderName;
}
#2)
$FmtPV['$orderpage'] = "'" . ZAPconfig('Order', 'Order') . "." .
strftime("%Y%j", time()) . "-" . strtoupper(substr(session_id(), 0,
16)) . "'";
The ordername is the same in both code snippets, but the ZAPconfig
function seems to function differently. Specifically it works in #1,
but not quite right in #2. Can't figure out why...
Cheers,
Dan
More information about the pmwiki-devel
mailing list