X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=api.php;h=fd56db4ff3ba0af78bec422c9369eec0019ef093;hb=c01eb06e5ef995c4163e6dacb9a596226db5d57e;hp=a2c2c054d365a6750b52fe219135c55732da0fa2;hpb=626eb19cbbc2ceff3fc8cca0cdd00d1ac947d619;p=lhc%2Fweb%2Fwiklou.git diff --git a/api.php b/api.php index a2c2c054d3..fd56db4ff3 100644 --- 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');