Index: trunk/phase3/includes/api/ApiMain.php |
— | — | @@ -203,7 +203,12 @@ |
204 | 204 | * Only kept for backwards compatibility |
205 | 205 | * @deprecated Use isWriteMode() instead |
206 | 206 | */ |
207 | | - public function requestWriteMode() {} |
| 207 | + public function requestWriteMode() { |
| 208 | + if (!$this->mEnableWrite) |
| 209 | + $this->dieUsageMsg(array('writedisabled')); |
| 210 | + if (wfReadOnly()) |
| 211 | + $this->dieUsageMsg(array('readonlytext')); |
| 212 | + } |
208 | 213 | |
209 | 214 | /** |
210 | 215 | * Set how long the response should be cached. |