dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e604c3
)
Small esthetic fix
author
Roan Kattouw
<catrope@users.mediawiki.org>
Mon, 4 Feb 2008 18:08:43 +0000
(18:08 +0000)
committer
Roan Kattouw
<catrope@users.mediawiki.org>
Mon, 4 Feb 2008 18:08:43 +0000
(18:08 +0000)
includes/SpecialPage.php
patch
|
blob
|
history
diff --git
a/includes/SpecialPage.php
b/includes/SpecialPage.php
index
af58c47
..
ac05c68
100644
(file)
--- 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");
}
}