From: Niklas Laxström Date: Sun, 26 Jun 2011 15:40:14 +0000 (+0000) Subject: Unbreak multiple maintenance scripts X-Git-Tag: 1.31.0-rc.0~29268 X-Git-Url: http://git.cyclocoop.org/%22.%24image2.%22?a=commitdiff_plain;h=2cdd7f95842796cf2bb4ea2c79dc6546e716de11;p=lhc%2Fweb%2Fwiklou.git Unbreak multiple maintenance scripts --- diff --git a/maintenance/compareParsers.php b/maintenance/compareParsers.php index 4f8facc2a6..4fe4e4d083 100644 --- a/maintenance/compareParsers.php +++ b/maintenance/compareParsers.php @@ -139,4 +139,4 @@ class CompareParsers extends DumpIterator { } $maintClass = "CompareParsers"; -require( RUN_MAINTENANCE_IF_MAIN ); +require_once( RUN_MAINTENANCE_IF_MAIN ); diff --git a/maintenance/preprocessDump.php b/maintenance/preprocessDump.php index bacc64641b..ad9b4f14df 100644 --- a/maintenance/preprocessDump.php +++ b/maintenance/preprocessDump.php @@ -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 ); diff --git a/maintenance/rebuildImages.php b/maintenance/rebuildImages.php index 601bfffc4a..55f93d7bd0 100644 --- a/maintenance/rebuildImages.php +++ b/maintenance/rebuildImages.php @@ -219,4 +219,4 @@ class ImageBuilder extends Maintenance { } $maintClass = 'ImageBuilder'; -require( RUN_MAINTENANCE_IF_MAIN ); +require_once( RUN_MAINTENANCE_IF_MAIN ); diff --git a/maintenance/upgrade1_5.php b/maintenance/upgrade1_5.php index 709d0b2652..730e763769 100644 --- a/maintenance/upgrade1_5.php +++ b/maintenance/upgrade1_5.php @@ -1324,4 +1324,4 @@ END } $maintClass = 'FiveUpgrade'; -require( RUN_MAINTENANCE_IF_MAIN ); +require_once( RUN_MAINTENANCE_IF_MAIN );