From: Roan Kattouw Date: Wed, 20 May 2009 20:07:33 +0000 (+0000) Subject: Re-adding ApiMain::requestWriteMode() (removed in r48901) for backwards compatibility... X-Git-Tag: 1.31.0-rc.0~41716 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/supprimer.php?a=commitdiff_plain;h=1ce9347d0116fd580db42b2223ffb696ecb8c5ff;p=lhc%2Fweb%2Fwiklou.git 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 --- 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 +}