}
public function getPossibleErrors() {
+ global $wgMaxArticleSize;
+
return array_merge( parent::getPossibleErrors(), array(
array( 'missingparam', 'title' ),
array( 'missingtext' ),
array( 'spamdetected', 'spam' ),
array( 'filtered' ),
array( 'blockedtext' ),
- array( 'contenttoobig', $this->getMaxArticleSize() ),
+ array( 'contenttoobig', $wgMaxArticleSize ),
array( 'noedit-anon' ),
array( 'noedit' ),
array( 'actionthrottledtext' ),
) );
}
- private function getMaxArticleSize() {
- global $wgMaxArticleSize;
- return $wgMaxArticleSize;
- }
-
protected function getAllowedParams() {
return array (
'title' => null,