X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=api.php;h=817f4bca78a689812ef91fa9819bed25cf74c523;hb=3141337d77504b52045406c540a371f3444d40fc;hp=b856708e2ab854990cd0d11ba291ce5a9e2769ab;hpb=5162afcfb993586c2ad65e20f97094dbd6ea001f;p=lhc%2Fweb%2Fwiklou.git diff --git a/api.php b/api.php index b856708e2a..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 @@ -83,3 +83,6 @@ wfDoUpdates(); wfProfileOut('api.php'); wfLogProfilingData(); +// Shut down the database +wfGetLBFactory()->shutdown(); +