From 3bbe80f2b0455ffa8ead17011ca6a2c2ee47b8f9 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Sun, 2 Dec 2007 14:36:32 +0000 Subject: [PATCH] Oops, requestWriteMode() is in ApiMain, not ApiBase --- includes/api/ApiBlock.php | 2 +- includes/api/ApiChangeRights.php | 2 +- includes/api/ApiDelete.php | 2 +- includes/api/ApiMove.php | 2 +- includes/api/ApiProtect.php | 2 +- includes/api/ApiRollback.php | 2 +- includes/api/ApiUnblock.php | 2 +- includes/api/ApiUndelete.php | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) 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; -- 2.20.1