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