r28052 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r28051‎ | r28052 | r28053 >
Date:14:36, 2 December 2007
Author:catrope
Status:old
Tags:
Comment:
Oops, requestWriteMode() is in ApiMain, not ApiBase
Modified paths:
  • /trunk/phase3/includes/api/ApiBlock.php (modified) (history)
  • /trunk/phase3/includes/api/ApiChangeRights.php (modified) (history)
  • /trunk/phase3/includes/api/ApiDelete.php (modified) (history)
  • /trunk/phase3/includes/api/ApiMove.php (modified) (history)
  • /trunk/phase3/includes/api/ApiProtect.php (modified) (history)
  • /trunk/phase3/includes/api/ApiRollback.php (modified) (history)
  • /trunk/phase3/includes/api/ApiUnblock.php (modified) (history)
  • /trunk/phase3/includes/api/ApiUndelete.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiMove.php
@@ -40,7 +40,7 @@
4141 public function execute() {
4242 global $wgUser;
4343 $this->requestWriteMode();
44 - $params = $this->extractRequestParams();
 44+ $params = $this->getMain()->extractRequestParams();
4545 if(is_null($params['reason']))
4646 $params['reason'] = '';
4747
Index: trunk/phase3/includes/api/ApiChangeRights.php
@@ -38,7 +38,7 @@
3939
4040 public function execute() {
4141 global $wgUser, $wgRequest;
42 - $this->requestWriteMode();
 42+ $this->getMain()->requestWriteMode();
4343
4444 if(wfReadOnly())
4545 $this->dieUsage('The wiki is in read-only mode', 'readonly');
Index: trunk/phase3/includes/api/ApiProtect.php
@@ -38,7 +38,7 @@
3939
4040 public function execute() {
4141 global $wgUser;
42 - $this->requestWriteMode();
 42+ $this->getMain()->requestWriteMode();
4343 $params = $this->extractRequestParams();
4444
4545 $titleObj = NULL;
Index: trunk/phase3/includes/api/ApiRollback.php
@@ -39,7 +39,7 @@
4040 public function execute() {
4141 global $wgUser;
4242 $this->requestWriteMode();
43 - $params = $this->extractRequestParams();
 43+ $params = $this->getMain()->extractRequestParams();
4444
4545 $titleObj = NULL;
4646 if(!isset($params['title']))
Index: trunk/phase3/includes/api/ApiBlock.php
@@ -39,7 +39,7 @@
4040 public function execute() {
4141 global $wgUser;
4242 $this->requestWriteMode();
43 - $params = $this->extractRequestParams();
 43+ $params = $this->getMain()->extractRequestParams();
4444
4545 if($params['gettoken'])
4646 {
Index: trunk/phase3/includes/api/ApiDelete.php
@@ -85,7 +85,7 @@
8686 public function execute() {
8787 global $wgUser;
8888 $this->requestWriteMode();
89 - $params = $this->extractRequestParams();
 89+ $params = $this->getMain()->extractRequestParams();
9090
9191 $titleObj = NULL;
9292 if(!isset($params['title']))
Index: trunk/phase3/includes/api/ApiUndelete.php
@@ -38,7 +38,7 @@
3939
4040 public function execute() {
4141 global $wgUser;
42 - $this->requestWriteMode();
 42+ $this->getMain()->requestWriteMode();
4343 $params = $this->extractRequestParams();
4444
4545 $titleObj = NULL;
Index: trunk/phase3/includes/api/ApiUnblock.php
@@ -39,7 +39,7 @@
4040 public function execute() {
4141 global $wgUser;
4242 $this->requestWriteMode();
43 - $params = $this->extractRequestParams();
 43+ $params = $this->getMain()->extractRequestParams();
4444
4545 if($params['gettoken'])
4646 {

Status & tagging log