Index: trunk/phase3/includes/api/ApiEditPage.php |
— | — | @@ -341,6 +341,8 @@ |
342 | 342 | } |
343 | 343 | |
344 | 344 | public function getPossibleErrors() { |
| 345 | + global $wgMaxArticleSize; |
| 346 | + |
345 | 347 | return array_merge( parent::getPossibleErrors(), array( |
346 | 348 | array( 'missingparam', 'title' ), |
347 | 349 | array( 'missingtext' ), |
— | — | @@ -358,7 +360,7 @@ |
359 | 361 | array( 'spamdetected', 'spam' ), |
360 | 362 | array( 'filtered' ), |
361 | 363 | array( 'blockedtext' ), |
362 | | - array( 'contenttoobig', $this->getMaxArticleSize() ), |
| 364 | + array( 'contenttoobig', $wgMaxArticleSize ), |
363 | 365 | array( 'noedit-anon' ), |
364 | 366 | array( 'noedit' ), |
365 | 367 | array( 'actionthrottledtext' ), |
— | — | @@ -373,11 +375,6 @@ |
374 | 376 | ) ); |
375 | 377 | } |
376 | 378 | |
377 | | - private function getMaxArticleSize() { |
378 | | - global $wgMaxArticleSize; |
379 | | - return $wgMaxArticleSize; |
380 | | - } |
381 | | - |
382 | 379 | protected function getAllowedParams() { |
383 | 380 | return array ( |
384 | 381 | 'title' => null, |