Fix PHP error on wiki pages (Closes #1386).
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Fri, 18 Feb 2011 21:25:47 +0000 (22:25 +0100)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Fri, 18 Feb 2011 21:27:30 +0000 (22:27 +0100)
I *hate* pmwiki.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
include/wiki/farmconfig.php

index a4fef9d..243d2d8 100644 (file)
@@ -20,7 +20,7 @@ $Skin             = 'empty';
 
 @include_once("$FarmD/cookbook/e-protect.php");
 include_once($FarmD.'/scripts/xlpage-utf-8.php');
-ResolvePageName();
+$pagename = ResolvePageName($pagename);
 
 if ($action == 'rss'  || $action == 'atom' || $action == 'rdf'  || $action == 'dc') {
     $FmtPV['$MarkupExcerpt'] = '$page["text"]';