On 11/02/14 12:48 PM, Petko Yotov wrote:
John Rankin writes:
I have a couple of /e Markup calls which have replacements of the form

    "functionName(\$pagename,\$x,'$1')"

In MarkupToHTML, $x = array_shift($lines);

Markup_e makes $pagename available to replacement functions. Is there a
way to access $x or do I have to re-read the page source and reconstruct
it?

I'll add it for the next version, $x will be made available the same way as $pagename, with the line extract($GLOBALS["MarkupToHTML"]); automatically included with all calls to Markup_e().
I wonder how often this will be needed. Having reviewed the source carefully, in this instance it would be straightforward to code around by re-reading the page text. Would this be a better solution?

Should we include other local variables from MarkupToHTML()? (Like $p, $r?)
At this stage, my inclination would be to wait and see if there is a requirement.

JR

--
John Rankin


_______________________________________________
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to