[pmwiki-devel] Updating recipes for PHP 7.2

Dominique Faure dominique.faure at gmail.com
Mon Jun 19 03:02:23 CDT 2017


Hi,

As far as I understood the reference page:

Original code:
=====<- - - - -
Markup_e( 'NZTopo', # an internal PmWiki function that defines the custom
markup for the wiki (see http://www.pmwiki.org/wiki/PmWiki/CustomMarkup)
  'directives',
  "/\\(:nztopo (" . $qlocale . ")\s*(?:" . $qmods . "){0,7}\s*:\\)/i", #
  "Keep(NZTopo_Parse(\$m[1], \$m[2], \$m[3], \$m[4], \$m[5], \$m[6],
\$m[7], \$m[8], \$m[9]))" );
=====<- - - - -


Untested replacement code:
=====<- - - - -
Markup( 'NZTopo', # an internal PmWiki function that defines the custom
markup for the wiki (see http://www.pmwiki.org/wiki/PmWiki/CustomMarkup)
  'directives',
  "/\\(:nztopo (" . $qlocale . ")\s*(?:" . $qmods . "){0,7}\s*:\\)/i", #
  "NZTopoMarkup");

function NZTopoMarkup($m) {
  return Keep(NZTopo_Parse(\$m[1], \$m[2], \$m[3], \$m[4], \$m[5], \$m[6],
\$m[7], \$m[8], \$m[9]));
}
=====<- - - - -



On Mon, Jun 19, 2017 at 8:39 AM, Simon <nzskiwi at gmail.com> wrote:
>
> I have a recipe I'd like to update for PHP 7.2.
> I checked Custom Markup, which states that markup_e is deprecated.
> Are there instructions for replacing markup_e available
>
> tia
>
> Simon
>
> _______________________________________________
> pmwiki-devel mailing list
> pmwiki-devel at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-devel
>



--
Dominique
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-devel/attachments/20170619/fc0f6c15/attachment.html>


More information about the pmwiki-devel mailing list