From: Gabriel Wicke Date: Tue, 3 Feb 2004 13:20:56 +0000 (+0000) Subject: fixed the wfLoclaUrl hack committed yeterday by mistake to another hack... X-Git-Tag: 1.3.0beta1~1026 X-Git-Url: http://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=76cbec491f06721270e90cce5557ee901491967d;p=lhc%2Fweb%2Fwiklou.git fixed the wfLoclaUrl hack committed yeterday by mistake to another hack... --- diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index b901bc4119..dd40d17061 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -64,7 +64,9 @@ function wfLocalUrl( $a, $q = "" ) } } else if ( "" == $q ) { $a = str_replace( "$1", $a, $wgArticlePath ); - } else { + } else if ($wgScript != '' ) { + $a = "{$wgScript}?title={$a}&{$q}"; + } else { //XXX ugly hack for toplevel wikis $a = "/{$a}&{$q}"; } return $a;