r69197 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r69196‎ | r69197 | r69198 >
Date:19:30, 8 July 2010
Author:maxsem
Status:ok
Tags:
Comment:
requestWriteMode() is deprecated and unused
Modified paths:
  • /trunk/phase3/includes/api/ApiMain.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiMain.php
@@ -208,19 +208,6 @@
209209 }
210210
211211 /**
212 - * Only kept for backwards compatibility
213 - * @deprecated Use isWriteMode() instead
214 - */
215 - public function requestWriteMode() {
216 - if ( !$this->mEnableWrite ) {
217 - $this->dieUsageMsg( array( 'writedisabled' ) );
218 - }
219 - if ( wfReadOnly() ) {
220 - $this->dieUsageMsg( array( 'readonlytext' ) );
221 - }
222 - }
223 -
224 - /**
225212 * Set how long the response should be cached.
226213 */
227214 public function setCacheMaxAge( $maxage ) {

Status & tagging log