From: Sam Reed Date: Tue, 16 Feb 2010 22:01:38 +0000 (+0000) Subject: Minor fixup to api/ApiEditPage.php to remove getMaxArticleSize function X-Git-Tag: 1.31.0-rc.0~37722 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/bilan.php?a=commitdiff_plain;h=41ba6ce60ff451076df1c082937d90d8c6e65b53;p=lhc%2Fweb%2Fwiklou.git Minor fixup to api/ApiEditPage.php to remove getMaxArticleSize function --- diff --git a/includes/api/ApiEditPage.php b/includes/api/ApiEditPage.php index e85da4b07f..23f5310ffd 100644 --- a/includes/api/ApiEditPage.php +++ b/includes/api/ApiEditPage.php @@ -341,6 +341,8 @@ class ApiEditPage extends ApiBase { } public function getPossibleErrors() { + global $wgMaxArticleSize; + return array_merge( parent::getPossibleErrors(), array( array( 'missingparam', 'title' ), array( 'missingtext' ), @@ -358,7 +360,7 @@ class ApiEditPage extends ApiBase { array( 'spamdetected', 'spam' ), array( 'filtered' ), array( 'blockedtext' ), - array( 'contenttoobig', $this->getMaxArticleSize() ), + array( 'contenttoobig', $wgMaxArticleSize ), array( 'noedit-anon' ), array( 'noedit' ), array( 'actionthrottledtext' ), @@ -373,11 +375,6 @@ class ApiEditPage extends ApiBase { ) ); } - private function getMaxArticleSize() { - global $wgMaxArticleSize; - return $wgMaxArticleSize; - } - protected function getAllowedParams() { return array ( 'title' => null,