From: Brion Vibber Date: Thu, 15 May 2003 20:44:55 +0000 (+0000) Subject: Local URLs return real local URLs X-Git-Tag: 1.1.0~560 X-Git-Url: http://git.cyclocoop.org/ecrire?a=commitdiff_plain;h=92ea39aa9f6aa2ea72579828d0f1a720b4457bef;p=lhc%2Fweb%2Fwiklou.git Local URLs return real local URLs --- 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; }