From 2cdd7f95842796cf2bb4ea2c79dc6546e716de11 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Sun, 26 Jun 2011 15:40:14 +0000 Subject: [PATCH] Unbreak multiple maintenance scripts --- maintenance/compareParsers.php | 2 +- maintenance/preprocessDump.php | 10 +++++----- maintenance/rebuildImages.php | 2 +- maintenance/upgrade1_5.php | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) 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 ); -- 2.20.1