From fe8855bf6135921b80c14a1d5584a1935847511f Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Mon, 4 Feb 2008 18:08:43 +0000 Subject: [PATCH] Small esthetic fix --- includes/SpecialPage.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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"); } } -- 2.20.1