From 92ea39aa9f6aa2ea72579828d0f1a720b4457bef Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Thu, 15 May 2003 20:44:55 +0000 Subject: [PATCH] Local URLs return real local URLs --- includes/GlobalFunctions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index a60007bea4..287938738d 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -46,14 +46,14 @@ function wfLocalUrl( $a, $q = "" ) if ( "" == $a ) { if( "" == $q ) { - $a = $wgServer . $wgScript; + $a = $wgScript; } else { - $a = "{$wgServer}{$wgScript}?{$q}"; + $a = "{$wgScript}?{$q}"; } } else if ( "" == $q ) { $a = str_replace( "$1", $a, $wgArticlePath ); } else { - $a = "{$wgServer}{$wgScript}?title={$a}&{$q}"; + $a = "{$wgScript}?title={$a}&{$q}"; } return $a; } -- 2.20.1