dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Apply $wgMaxArticleSize more exactly
[lhc/web/wiklou.git]
/
includes
/
import
/
WikiImporter.php
diff --git
a/includes/import/WikiImporter.php
b/includes/import/WikiImporter.php
index
259d514
..
826bb59
100644
(file)
--- a/
includes/import/WikiImporter.php
+++ b/
includes/import/WikiImporter.php
@@
-840,7
+840,7
@@
class WikiImporter {
'text',
''
] ) ) &&
- (int)( strlen( $revisionInfo['text'] ) / 1024 ) > $wgMaxArticleSize
+ strlen( $revisionInfo['text'] ) > $wgMaxArticleSize * 1024
) {
throw new MWException( 'The text of ' .
( isset( $revisionInfo['id'] ) ?