summaryrefslogtreecommitdiff
path: root/api.php
diff options
context:
space:
mode:
Diffstat (limited to 'api.php')
-rw-r--r--api.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/api.php b/api.php
index 77dc52a4..817f4bca 100644
--- a/api.php
+++ b/api.php
@@ -64,7 +64,7 @@ if( strcmp( "$wgScriptPath/api$wgScriptExtension", $url ) ) {
if (!$wgEnableAPI) {
echo 'MediaWiki API is not enabled for this site. Add the following line to your LocalSettings.php';
echo '<pre><b>$wgEnableAPI=true;</b></pre>';
- die(-1);
+ die(1);
}
/* Construct an ApiMain with the arguments passed via the URL. What we get back