Small esthetic fix
authorRoan Kattouw <catrope@users.mediawiki.org>
Mon, 4 Feb 2008 18:08:43 +0000 (18:08 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Mon, 4 Feb 2008 18:08:43 +0000 (18:08 +0000)
includes/SpecialPage.php

index af58c47..ac05c68 100644 (file)
@@ -862,6 +862,9 @@ class SpecialAPI extends UnlistedSpecialPage {
        
        function execute($par) {
                global $wgScriptPath, $wgOut;
-               $wgOut->redirect("$wgScriptPath/api.php?$par");
+               if($par != '')
+                       $wgOut->redirect("$wgScriptPath/api.php?$par");
+               else
+                       $wgOut->redirect("$wgScriptPath/api.php");
        }
 }