From 76cbec491f06721270e90cce5557ee901491967d Mon Sep 17 00:00:00 2001 From: Gabriel Wicke Date: Tue, 3 Feb 2004 13:20:56 +0000 Subject: [PATCH] fixed the wfLoclaUrl hack committed yeterday by mistake to another hack... --- includes/GlobalFunctions.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.20.1