[pmwiki-devel] markup() callback fn and $pagename

V.Krishn vkrishn4 at gmail.com
Mon Feb 24 05:41:07 CST 2014


I am trying to use a callback as in example here,
http://www.pmwiki.org/wiki/PmWiki/CustomMarkup#php55

installation: Php-5.5.4, pmwiki-2.2.57

1.
using,
extract($GLOBALS["MarkupToHTML"]); # to get $pagename
gives the following error:
...
PHP Warning:  extract() expects parameter 1 to be array, null given in
...

2.
Which of the two conversion methods 
described here 'PmWiki/CustomMarkup#php55' is recommended 
in simple replacements code like,
"functionName(\$pagename, PSS('$1'))" ?


Any help appreciated.

-- 
Regards.
V.Krishn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-devel/attachments/20140224/d4e6a26c/attachment.html>


More information about the pmwiki-devel mailing list