use ?, not \& for top-level wikis
authorGabriel Wicke <gwicke@users.mediawiki.org>
Mon, 17 May 2004 20:04:50 +0000 (20:04 +0000)
committerGabriel Wicke <gwicke@users.mediawiki.org>
Mon, 17 May 2004 20:04:50 +0000 (20:04 +0000)
includes/GlobalFunctions.php

index 140f195..8989b60 100644 (file)
@@ -93,8 +93,8 @@ function wfLocalUrl( $a, $q = "" )
                $a = str_replace( "$1", $a, $wgArticlePath );
        } else if ($wgScript != '' ) {
                $a = "{$wgScript}?title={$a}&{$q}";     
-       } else { //XXX ugly hack for toplevel wikis
-               $a = "/{$a}&{$q}";      
+       } else { //XXX hackish solution for toplevel wikis
+               $a = "/{$a}?{$q}";      
        }
        return $a;
 }