* @file
* @ingroup Maintenance
*/
-
+
require_once( dirname( __FILE__ ) . '/dumpIterator.php' );
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 );
if ( !$this->hasOption( 'cache' ) ) {
$wgPreprocessorCacheThreshold = false;
}
-
+
if ( $this->hasOption( 'preprocessor' ) ) {
$name = $this->getOption( 'preprocessor' );
} elseif ( isset( $wgParserConf['preprocessorClass'] ) ) {
$wgParser->firstCallInit();
$this->mPreprocessor = new $name( $this );
}
-
+
/**
* Callback function for each revision, preprocessToObj()
* @param $rev Revision
}
$maintClass = "PreprocessDump";
-require( RUN_MAINTENANCE_IF_MAIN );
+require_once( RUN_MAINTENANCE_IF_MAIN );