[pmwiki-users] sorry again that Depricated: preg_replace error

Petko Yotov 5ko at 5ko.fr
Thu Jun 19 15:22:28 CDT 2014


Petko Yotov writes:
> Peter K.H. Gragert writes:
>> Markup('galleria', 'inline', "/\\(:galleria\\s*(.*?):\\)/se",  
>> "Keep($galleria_fn(PSS('$1')))");
>
> This can probably be fixed this way (untested):
>
>  Markup_e('galleria', 'inline', "/\\(:galleria\\s*(.*?):\\)/s",
>    "Keep($GLOBALS['galleria_fn']($m[1]))");

Sorry, this should be more like this:

   Markup_e('galleria', 'inline', "/\\(:galleria\\s*(.*?):\\)/s",
     "Keep(\$GLOBALS['galleria_fn'](\$m[1]))");

(in the last line there should be \ before the $ signs).

This is for any recipe: it may be a good idea to try contacting the  
maintainer of the recipe who will be more competent on ways how to upgrade  
their recipes. Read the recipe page and/or the profile page to see how  
she/he prefers to be contacted - on the talk page, via private e-mail or on  
the mailing list. If the author/maintainer of the recipe cannot update it,  
please leave us a message at:

  http://www.pmwiki.org/wiki/PITS/01319

Petko




More information about the pmwiki-users mailing list