*API: better version gen, added check for read-only api, added allpages params descri...
[lhc/web/wiklou.git] / api.php
diff --git a/api.php b/api.php
index a2c2c05..fd56db4 100644 (file)
--- a/api.php
+++ b/api.php
@@ -103,7 +103,11 @@ if (!isset ($wgEnableAPI) || !$wgEnableAPI) {
 }
 
 $wgAutoloadClasses = array_merge($wgAutoloadClasses, $wgApiAutoloadClasses);
-$processor = new ApiMain($wgApiStartTime, $wgApiModules, $wgApiFormats);
+
+if (!isset($wgEnableWriteAPI))
+       $wgEnableWriteAPI = false;      // This should be 'true' later, once the api is stable. 
+       
+$processor = new ApiMain($wgApiStartTime, $wgApiModules, $wgApiFormats, $wgEnableWriteAPI);
 $processor->execute();
 
 wfProfileOut('api.php');