From 1ce9347d0116fd580db42b2223ffb696ecb8c5ff Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Wed, 20 May 2009 20:07:33 +0000 Subject: [PATCH] Re-adding ApiMain::requestWriteMode() (removed in r48901) for backwards compatibility: this way extensions can call requestWriteMode() AND define function isWriteMode() { return true; } without causing fatal errors --- includes/api/ApiMain.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/includes/api/ApiMain.php b/includes/api/ApiMain.php index 92f92aa303..218f4d2f2b 100644 --- a/includes/api/ApiMain.php +++ b/includes/api/ApiMain.php @@ -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 +} -- 2.20.1