Disable the time limit during full-history export
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 20 Aug 2008 02:22:50 +0000 (02:22 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 20 Aug 2008 02:22:50 +0000 (02:22 +0000)
includes/specials/SpecialExport.php

index a8ba2be..5021e96 100644 (file)
@@ -232,6 +232,11 @@ function wfSpecialExport( $page = '' ) {
                        $lb = wfGetLBFactory()->newMainLB();
                        $db = $lb->getConnection( DB_LAST );
                        $buffer = WikiExporter::STREAM;
+                       
+                       // This might take a while... :D
+                       wfSuppressWarnings();
+                       set_time_limit(0);
+                       wfRestoreWarnings();
                }
 
                $exporter = new WikiExporter( $db, $history, $buffer );