Document $wgEnableAPI and $wgEnableWriteAPI better
authorRob Church <robchurch@users.mediawiki.org>
Wed, 8 Aug 2007 01:05:27 +0000 (01:05 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Wed, 8 Aug 2007 01:05:27 +0000 (01:05 +0000)
includes/DefaultSettings.php

index ff32e76..8b21de0 100644 (file)
@@ -2660,10 +2660,18 @@ $wgDjvuPostProcessor = 'pnmtojpeg';
 $wgDjvuOutputExtension = 'jpg';
 
 /**
-* Enable direct access to the data API
-* through api.php
-*/
+ * Enable the MediaWiki API for convenient access to
+ * machine-readable data via api.php
+ *
+ * See http://www.mediawiki.org/wiki/API
+ */
 $wgEnableAPI = true;
+
+/**
+ * Allow the API to be used to perform write operations
+ * (page edits, rollback, etc.) when an authorised user
+ * accesses it
+ */
 $wgEnableWriteAPI = false;
 
 /**