@@ 1829-1834 (lines=6) @@ | ||
1826 | } |
|
1827 | ||
1828 | $this->contentLength = strlen( $this->textbox1 ); |
|
1829 | if ( $this->contentLength > $wgMaxArticleSize * 1024 ) { |
|
1830 | // Error will be displayed by showEditForm() |
|
1831 | $this->tooBig = true; |
|
1832 | $status->setResult( false, self::AS_CONTENT_TOO_BIG ); |
|
1833 | return $status; |
|
1834 | } |
|
1835 | ||
1836 | if ( !$wgUser->isAllowed( 'edit' ) ) { |
|
1837 | if ( $wgUser->isAnon() ) { |
|
@@ 2128-2132 (lines=5) @@ | ||
2125 | ||
2126 | // Check for length errors again now that the section is merged in |
|
2127 | $this->contentLength = strlen( $this->toEditText( $content ) ); |
|
2128 | if ( $this->contentLength > $wgMaxArticleSize * 1024 ) { |
|
2129 | $this->tooBig = true; |
|
2130 | $status->setResult( false, self::AS_MAX_ARTICLE_SIZE_EXCEEDED ); |
|
2131 | return $status; |
|
2132 | } |
|
2133 | ||
2134 | $flags = EDIT_AUTOSUMMARY | |
|
2135 | ( $new ? EDIT_NEW : EDIT_UPDATE ) | |