From 41ba6ce60ff451076df1c082937d90d8c6e65b53 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Tue, 16 Feb 2010 22:01:38 +0000 Subject: [PATCH] Minor fixup to api/ApiEditPage.php to remove getMaxArticleSize function --- includes/api/ApiEditPage.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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, -- 2.20.1