From: Roan Kattouw Date: Sun, 2 Dec 2007 14:36:32 +0000 (+0000) Subject: Oops, requestWriteMode() is in ApiMain, not ApiBase X-Git-Tag: 1.31.0-rc.0~50614 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/?a=commitdiff_plain;h=3bbe80f2b0455ffa8ead17011ca6a2c2ee47b8f9;p=lhc%2Fweb%2Fwiklou.git Oops, requestWriteMode() is in ApiMain, not ApiBase --- diff --git a/includes/api/ApiBlock.php b/includes/api/ApiBlock.php index 636d887244..947a3c111d 100644 --- a/includes/api/ApiBlock.php +++ b/includes/api/ApiBlock.php @@ -39,7 +39,7 @@ class ApiBlock extends ApiBase { public function execute() { global $wgUser; $this->requestWriteMode(); - $params = $this->extractRequestParams(); + $params = $this->getMain()->extractRequestParams(); if($params['gettoken']) { diff --git a/includes/api/ApiChangeRights.php b/includes/api/ApiChangeRights.php index ff819a9e5a..e8138b8710 100644 --- a/includes/api/ApiChangeRights.php +++ b/includes/api/ApiChangeRights.php @@ -38,7 +38,7 @@ class ApiChangeRights extends ApiBase { public function execute() { global $wgUser, $wgRequest; - $this->requestWriteMode(); + $this->getMain()->requestWriteMode(); if(wfReadOnly()) $this->dieUsage('The wiki is in read-only mode', 'readonly'); diff --git a/includes/api/ApiDelete.php b/includes/api/ApiDelete.php index b0d064b49a..078b9753c4 100644 --- a/includes/api/ApiDelete.php +++ b/includes/api/ApiDelete.php @@ -85,7 +85,7 @@ class ApiDelete extends ApiBase { public function execute() { global $wgUser; $this->requestWriteMode(); - $params = $this->extractRequestParams(); + $params = $this->getMain()->extractRequestParams(); $titleObj = NULL; if(!isset($params['title'])) diff --git a/includes/api/ApiMove.php b/includes/api/ApiMove.php index 5875042714..e410aecfbe 100644 --- a/includes/api/ApiMove.php +++ b/includes/api/ApiMove.php @@ -40,7 +40,7 @@ class ApiMove extends ApiBase { public function execute() { global $wgUser; $this->requestWriteMode(); - $params = $this->extractRequestParams(); + $params = $this->getMain()->extractRequestParams(); if(is_null($params['reason'])) $params['reason'] = ''; diff --git a/includes/api/ApiProtect.php b/includes/api/ApiProtect.php index 14316212a6..e48bfe602c 100644 --- a/includes/api/ApiProtect.php +++ b/includes/api/ApiProtect.php @@ -38,7 +38,7 @@ class ApiProtect extends ApiBase { public function execute() { global $wgUser; - $this->requestWriteMode(); + $this->getMain()->requestWriteMode(); $params = $this->extractRequestParams(); $titleObj = NULL; diff --git a/includes/api/ApiRollback.php b/includes/api/ApiRollback.php index 899d076251..347b149b4d 100644 --- a/includes/api/ApiRollback.php +++ b/includes/api/ApiRollback.php @@ -39,7 +39,7 @@ class ApiRollback extends ApiBase { public function execute() { global $wgUser; $this->requestWriteMode(); - $params = $this->extractRequestParams(); + $params = $this->getMain()->extractRequestParams(); $titleObj = NULL; if(!isset($params['title'])) diff --git a/includes/api/ApiUnblock.php b/includes/api/ApiUnblock.php index 31bae7b328..61311796ea 100644 --- a/includes/api/ApiUnblock.php +++ b/includes/api/ApiUnblock.php @@ -39,7 +39,7 @@ class ApiUnblock extends ApiBase { public function execute() { global $wgUser; $this->requestWriteMode(); - $params = $this->extractRequestParams(); + $params = $this->getMain()->extractRequestParams(); if($params['gettoken']) { diff --git a/includes/api/ApiUndelete.php b/includes/api/ApiUndelete.php index 886bdca158..48de1a3348 100644 --- a/includes/api/ApiUndelete.php +++ b/includes/api/ApiUndelete.php @@ -38,7 +38,7 @@ class ApiUndelete extends ApiBase { public function execute() { global $wgUser; - $this->requestWriteMode(); + $this->getMain()->requestWriteMode(); $params = $this->extractRequestParams(); $titleObj = NULL;