Unbreak multiple maintenance scripts
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Sun, 26 Jun 2011 15:40:14 +0000 (15:40 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Sun, 26 Jun 2011 15:40:14 +0000 (15:40 +0000)
maintenance/compareParsers.php
maintenance/preprocessDump.php
maintenance/rebuildImages.php
maintenance/upgrade1_5.php

index 4f8facc..4fe4e4d 100644 (file)
@@ -139,4 +139,4 @@ class CompareParsers extends DumpIterator {
 }
 
 $maintClass = "CompareParsers";
-require( RUN_MAINTENANCE_IF_MAIN );
+require_once( RUN_MAINTENANCE_IF_MAIN );
index bacc646..ad9b4f1 100644 (file)
@@ -24,7 +24,7 @@
  * @file
  * @ingroup Maintenance
  */
+
 require_once( dirname( __FILE__ ) . '/dumpIterator.php' );
 
 class PreprocessDump extends DumpIterator {
@@ -37,7 +37,7 @@ class PreprocessDump extends DumpIterator {
                global $wgParser;
                return $wgParser->getStripList();
        }
-               
+
        public function __construct() {
                parent::__construct();
                $this->addOption( 'cache', 'Use and populate the preprocessor cache.', false, false );
@@ -54,7 +54,7 @@ class PreprocessDump extends DumpIterator {
                if ( !$this->hasOption( 'cache' ) ) {
                        $wgPreprocessorCacheThreshold = false;
                }
-               
+
                if ( $this->hasOption( 'preprocessor' ) ) {
                        $name = $this->getOption( 'preprocessor' );
                } elseif ( isset( $wgParserConf['preprocessorClass'] ) ) {
@@ -66,7 +66,7 @@ class PreprocessDump extends DumpIterator {
                $wgParser->firstCallInit();
                $this->mPreprocessor = new $name( $this );
        }
-       
+
        /**
         * Callback function for each revision, preprocessToObj()
         * @param $rev Revision
@@ -82,5 +82,5 @@ class PreprocessDump extends DumpIterator {
 }
 
 $maintClass = "PreprocessDump";
-require( RUN_MAINTENANCE_IF_MAIN );
+require_once( RUN_MAINTENANCE_IF_MAIN );
 
index 601bfff..55f93d7 100644 (file)
@@ -219,4 +219,4 @@ class ImageBuilder extends Maintenance {
 }
 
 $maintClass = 'ImageBuilder';
-require( RUN_MAINTENANCE_IF_MAIN );
+require_once( RUN_MAINTENANCE_IF_MAIN );
index 709d0b2..730e763 100644 (file)
@@ -1324,4 +1324,4 @@ END
 }
 
 $maintClass = 'FiveUpgrade';
-require( RUN_MAINTENANCE_IF_MAIN );
+require_once( RUN_MAINTENANCE_IF_MAIN );