@@ 1849-1854 (lines=6) @@ | ||
1846 | } |
|
1847 | ||
1848 | $this->contentLength = strlen( $this->textbox1 ); |
|
1849 | if ( $this->contentLength > $wgMaxArticleSize * 1024 ) { |
|
1850 | // Error will be displayed by showEditForm() |
|
1851 | $this->tooBig = true; |
|
1852 | $status->setResult( false, self::AS_CONTENT_TOO_BIG ); |
|
1853 | return $status; |
|
1854 | } |
|
1855 | ||
1856 | if ( !$wgUser->isAllowed( 'edit' ) ) { |
|
1857 | if ( $wgUser->isAnon() ) { |
|
@@ 2148-2152 (lines=5) @@ | ||
2145 | ||
2146 | // Check for length errors again now that the section is merged in |
|
2147 | $this->contentLength = strlen( $this->toEditText( $content ) ); |
|
2148 | if ( $this->contentLength > $wgMaxArticleSize * 1024 ) { |
|
2149 | $this->tooBig = true; |
|
2150 | $status->setResult( false, self::AS_MAX_ARTICLE_SIZE_EXCEEDED ); |
|
2151 | return $status; |
|
2152 | } |
|
2153 | ||
2154 | $flags = EDIT_AUTOSUMMARY | |
|
2155 | ( $new ? EDIT_NEW : EDIT_UPDATE ) | |