http://www.mediawiki.org/wiki/Special:Code/MediaWiki/91968

Revision: 91968
Author:   ariel
Date:     2011-07-12 15:12:29 +0000 (Tue, 12 Jul 2011)
Log Message:
-----------
mft r91967

Modified Paths:
--------------
    branches/wmf/1.17wmf1/includes/Import.php
    branches/wmf/1.17wmf1/maintenance/backupPrefetch.inc

Modified: branches/wmf/1.17wmf1/includes/Import.php
===================================================================
--- branches/wmf/1.17wmf1/includes/Import.php   2011-07-12 15:01:58 UTC (rev 
91967)
+++ branches/wmf/1.17wmf1/includes/Import.php   2011-07-12 15:12:29 UTC (rev 
91968)
@@ -44,7 +44,12 @@
 
                stream_wrapper_register( 'uploadsource', 'UploadSourceAdapter' 
);
                $id = UploadSourceAdapter::registerSource( $source );
-               $this->reader->open( "uploadsource://$id" );
+               if (defined( 'LIBXML_PARSEHUGE' ) ) {
+                       $this->reader->open( "uploadsource://$id", null, 
LIBXML_PARSEHUGE );
+               }
+               else {
+                       $this->reader->open( "uploadsource://$id" );
+               }
 
                // Default callbacks
                $this->setRevisionCallback( array( $this, "importRevision" ) );

Modified: branches/wmf/1.17wmf1/maintenance/backupPrefetch.inc
===================================================================
--- branches/wmf/1.17wmf1/maintenance/backupPrefetch.inc        2011-07-12 
15:01:58 UTC (rev 91967)
+++ branches/wmf/1.17wmf1/maintenance/backupPrefetch.inc        2011-07-12 
15:12:29 UTC (rev 91968)
@@ -33,7 +33,12 @@
                $this->infiles = explode(';',$infile);
                $this->reader = new XMLReader();
                $infile = array_shift($this->infiles);
-               $this->reader->open( $infile );
+               if (defined( 'LIBXML_PARSEHUGE' ) ) {
+                       $this->reader->open( $infile, null, LIBXML_PARSEHUGE );
+               }
+               else {
+                       $this->reader->open( $infile );
+               }
        }
 
        /**


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to