From: Roan Kattouw Date: Mon, 4 Feb 2008 18:08:43 +0000 (+0000) Subject: Small esthetic fix X-Git-Tag: 1.31.0-rc.0~49617 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=fe8855bf6135921b80c14a1d5584a1935847511f;p=lhc%2Fweb%2Fwiklou.git Small esthetic fix --- diff --git a/includes/SpecialPage.php b/includes/SpecialPage.php index af58c4749f..ac05c68b4d 100644 --- a/includes/SpecialPage.php +++ b/includes/SpecialPage.php @@ -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"); } }