01376: The InclueFile recipe generates a /e deprecated message
Description: The cookbook recipe at http://www.pmwiki.org/wiki/Cookbook/IncludeFile throws a "/e deprecated" PHP error. The author has removed his contact info.
All that I am using is "Solution 1a" to include some text files on wiki pages. I can see the "/e" in the recipe, but have no idea of how to fix it.
the lines in question are:
Markup('includefile', 'directives', '/\\(:includefile\\s+([-\\/.\\w]+)\\s*:\\)/e', "Keep(implode('', file('/home/yourlocalfilesystempath/public_html/inc/$1')))");
NeilHerber January 17, 2016, at 10:53 AM
The following should probably fix the recipe. Please try it and report if it works:
Markup_e('includefile', 'directives', '/\\(:includefile\\s+([-\\/.\\w]+)\\s*:\\)/', "Keep(implode('', file('/home/yourlocalfilesystempath/public_html/inc/'.\$m)))");
If it works, we'll update the recipe. --Petko January 17, 2016, at 12:38 PM
Hey Petko! That solution works perfectly for me. Thanks! NeilHerber January 17, 2016, at 11:28 PM
Recipe updated. --Petko January 21, 2016, at 09:56 AM