fixed the wfLoclaUrl hack committed yeterday by mistake to another hack...
authorGabriel Wicke <gwicke@users.mediawiki.org>
Tue, 3 Feb 2004 13:20:56 +0000 (13:20 +0000)
committerGabriel Wicke <gwicke@users.mediawiki.org>
Tue, 3 Feb 2004 13:20:56 +0000 (13:20 +0000)
includes/GlobalFunctions.php

index b901bc4..dd40d17 100644 (file)
@@ -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;