Apply $wgMaxArticleSize more exactly
[lhc/web/wiklou.git] / includes / import / WikiImporter.php
index 259d514..826bb59 100644 (file)
@@ -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'] ) ?