Flipbox doesn't suffer from the preg_replace problems in PHP 5.5, the
grep'd lines are in a conditional for the recipe to work with PmWiki
versions older than 2.2.58 on PHP older than 5.5.
However, it did suffer from the create_function() problems in PHP 7.2,
so I've updated it, you can get it from the Cookbook.
(Flipbox now does require PmWiki 2.2.58 or more recent).
Petko
On 16/07/2019 14:32, Johan Bengtsson wrote:
https://www.pmwiki.org/wiki/Cookbook/Flipbox
I believe this recipe still suffers from the preg_replace probs:
[elijah@peach cookbook]$ grep -n \/e flipbox.php
36: Markup('flipbox_pre', '<[=',
"/(\\[[$FlipboxChoices]{1,3})(\\])/e", "FmtPreFlipbox('$1', '$2')");
37: Markup('flipbox', 'inline',
"/\\[([$FlipboxChoices]{1,3})\t\t\t(\\d+)\t\t\t\\]/e",
It is disabled in our wiki so not top priority, but I think one or two
of our users liked it...
_______________________________________________
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users