r62600 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r62599‎ | r62600 | r62601 >
Date:22:01, 16 February 2010
Author:reedy
Status:ok
Tags:
Comment:
Minor fixup to api/ApiEditPage.php to remove getMaxArticleSize function
Modified paths:
  • /trunk/phase3/includes/api/ApiEditPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiEditPage.php
@@ -341,6 +341,8 @@
342342 }
343343
344344 public function getPossibleErrors() {
 345+ global $wgMaxArticleSize;
 346+
345347 return array_merge( parent::getPossibleErrors(), array(
346348 array( 'missingparam', 'title' ),
347349 array( 'missingtext' ),
@@ -358,7 +360,7 @@
359361 array( 'spamdetected', 'spam' ),
360362 array( 'filtered' ),
361363 array( 'blockedtext' ),
362 - array( 'contenttoobig', $this->getMaxArticleSize() ),
 364+ array( 'contenttoobig', $wgMaxArticleSize ),
363365 array( 'noedit-anon' ),
364366 array( 'noedit' ),
365367 array( 'actionthrottledtext' ),
@@ -373,11 +375,6 @@
374376 ) );
375377 }
376378
377 - private function getMaxArticleSize() {
378 - global $wgMaxArticleSize;
379 - return $wgMaxArticleSize;
380 - }
381 -
382379 protected function getAllowedParams() {
383380 return array (
384381 'title' => null,

Status & tagging log