[pmwiki-users] upcoming change to $PageTextVarPatterns

Patrick R. Michaud pmichaud at pobox.com
Mon May 14 15:24:23 CDT 2007


This is a note/warning to recipe authors and site
administrators regarding some imminent changes to
the $PageTextVarPatterns array.

If you don't know what $PageTextVarPatterns is and
have never used it, then you can safely ignore this
message.  :-)

First, I'm going to set the array entries in pmwiki.php
(prior to calling local customizations), instead of
using SDV() to set the entries in scripts/stdmarkup.php .
This makes it possible to call PageTextVar() from 
recipe scripts and have things properly initialized.

Second, the capturing pattern will change somewhat,
so that the text var name and value will be captured
to $2 and $3, instead of $1 and $2 as they are now.
$1 will be used to capture all of the text for the
page variable definition portion.

This change will take effect in beta46, unless someone
comes up with a strong reason not to do this.

Pm



More information about the pmwiki-users mailing list