From 7f42dcde820aef70e856934cd63f1e33769f7c35 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Fri, 14 Nov 2008 05:51:39 +0000 Subject: [PATCH] -1 is not a valid exit code --- api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.php b/api.php index 77dc52a4fb..817f4bca78 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 '
$wgEnableAPI=true;
'; - die(-1); + die(1); } /* Construct an ApiMain with the arguments passed via the URL. What we get back -- 2.20.1