r62478 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r62477‎ | r62478 | r62479 >
Date:21:12, 14 February 2010
Author:reedy
Status:ok
Tags:
Comment:
Change layout of the mustBePosted format to standardise it
Modified paths:
  • /trunk/phase3/includes/api/ApiBlock.php (modified) (history)
  • /trunk/phase3/includes/api/ApiDelete.php (modified) (history)
  • /trunk/phase3/includes/api/ApiEmailUser.php (modified) (history)
  • /trunk/phase3/includes/api/ApiImport.php (modified) (history)
  • /trunk/phase3/includes/api/ApiLogin.php (modified) (history)
  • /trunk/phase3/includes/api/ApiMove.php (modified) (history)
  • /trunk/phase3/includes/api/ApiProtect.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
@@ -164,7 +164,9 @@
165165 return $retval;
166166 }
167167
168 - public function mustBePosted() { return true; }
 168+ public function mustBePosted() {
 169+ return true;
 170+ }
169171
170172 public function isWriteMode() {
171173 return true;
Index: trunk/phase3/includes/api/ApiProtect.php
@@ -128,7 +128,9 @@
129129 $this->getResult()->addValue( null, $this->getModuleName(), $res );
130130 }
131131
132 - public function mustBePosted() { return true; }
 132+ public function mustBePosted() {
 133+ return true;
 134+ }
133135
134136 public function isWriteMode() {
135137 return true;
Index: trunk/phase3/includes/api/ApiDelete.php
@@ -172,7 +172,9 @@
173173 return array();
174174 }
175175
176 - public function mustBePosted() { return true; }
 176+ public function mustBePosted() {
 177+ return true;
 178+ }
177179
178180 public function isWriteMode() {
179181 return true;
Index: trunk/phase3/includes/api/ApiImport.php
@@ -98,7 +98,9 @@
9999 $this->getResult()->addValue( null, $this->getModuleName(), $resultData );
100100 }
101101
102 - public function mustBePosted() { return true; }
 102+ public function mustBePosted() {
 103+ return true;
 104+ }
103105
104106 public function isWriteMode() {
105107 return true;
Index: trunk/phase3/includes/api/ApiUnblock.php
@@ -77,7 +77,9 @@
7878 $this->getResult()->addValue( null, $this->getModuleName(), $res );
7979 }
8080
81 - public function mustBePosted() { return true; }
 81+ public function mustBePosted() {
 82+ return true;
 83+ }
8284
8385 public function isWriteMode() {
8486 return true;
Index: trunk/phase3/includes/api/ApiLogin.php
@@ -136,7 +136,9 @@
137137 $this->getResult()->addValue( null, 'login', $result );
138138 }
139139
140 - public function mustBePosted() { return true; }
 140+ public function mustBePosted() {
 141+ return true;
 142+ }
141143
142144 public function isReadMode() {
143145 return false;
Index: trunk/phase3/includes/api/ApiEmailUser.php
@@ -72,7 +72,9 @@
7373 $this->getResult()->addValue( null, $this->getModuleName(), $result );
7474 }
7575
76 - public function mustBePosted() { return true; }
 76+ public function mustBePosted() {
 77+ return true;
 78+ }
7779
7880 public function isWriteMode() {
7981 return true;
Index: trunk/phase3/includes/api/ApiBlock.php
@@ -112,7 +112,9 @@
113113 $this->getResult()->addValue( null, $this->getModuleName(), $res );
114114 }
115115
116 - public function mustBePosted() { return true; }
 116+ public function mustBePosted() {
 117+ return true;
 118+ }
117119
118120 public function isWriteMode() {
119121 return true;
Index: trunk/phase3/includes/api/ApiUndelete.php
@@ -85,7 +85,9 @@
8686 $this->getResult()->addValue( null, $this->getModuleName(), $info );
8787 }
8888
89 - public function mustBePosted() { return true; }
 89+ public function mustBePosted() {
 90+ return true;
 91+ }
9092
9193 public function isWriteMode() {
9294 return true;

Status & tagging log