Hello,

A few months ago I created a test website with pmwiki and blogit [1].
Now my system has been upgraded to PHP 5.5 and blogit is no longer
working correctly.
I followed the steps from the site [2] for changing the code for PHP
5.5, but I still have a problem with 1 line of code.

The original code line is (line 239):

Markup('blogit', 'fulltext', '/\(:blogit 
(list|cleantext)\s?(.*?):\)(.*?)\(:blogitend:\)/esi',
 "blogitMU_$1(PSS('$2'), PSS('$3'))");

I replaced it with the following:

Markup_e('blogit', 'fulltext', '/\(:blogit 
(list|cleantext)\s?(.*?):\)(.*?)\(:blogitend:\)/si',               
          "blogitMU_\$m[1](PSS(\$m[2]), PSS(\$m[3]))");

But this results in the following message in apache's error.log:
PHP Parse error:  syntax error, unexpected '$m' (T_VARIABLE) in
/home/tigerp/www/pmwiki-2.2.62/pmwiki.php(458) : runtime-created
function on line 1

How can I fix this issue?
All the other changes I made seem to be working.


[1] http://www.pmwiki.org/wiki/Cookbook/BlogIt
[2] http://www.pmwiki.org/wiki/PmWiki/CustomMarkup#php55

Tiger!P
-- 
A random quote:
Never take life seriously, nobody gets out alive, anyway.

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

Reply via email to