Re-adding ApiMain::requestWriteMode() (removed in r48901) for backwards compatibility...
authorRoan Kattouw <catrope@users.mediawiki.org>
Wed, 20 May 2009 20:07:33 +0000 (20:07 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Wed, 20 May 2009 20:07:33 +0000 (20:07 +0000)
includes/api/ApiMain.php

index 92f92aa..218f4d2 100644 (file)
@@ -190,6 +190,12 @@ class ApiMain extends ApiBase {
                return $this->mResult;
        }
 
+       /**
+        * Only kept for backwards compatibility
+        * @deprecated Use isWriteMode() instead
+        */
+       public function requestWriteMode() {}
+
        /**
         * Set how long the response should be cached.
         */
@@ -709,4 +715,4 @@ class UsageException extends Exception {
        public function __toString() {
                return "{$this->getCodeString()}: {$this->getMessage()}";
        }
-}
\ No newline at end of file
+}