$wgLang = Language::factory( 'en' );
$wgTitle = Title::newFromText( "MediaWiki database updater" );
+ define( 'MW_UPDATER', true );
+
$this->output( "MediaWiki {$wgVersion} Updater\n\n" );
wfWaitForSlaves( 5 ); // let's not kill databases, shall we? ;) --tor
wfCountDown( 5 );
}
+ $time1 = new MWTimestamp();
+
$shared = $this->hasOption( 'doshared' );
$updates = array( 'core', 'extensions' );
$updates[] = 'noschema';
}
$updates[] = 'stats';
-
- if ( !$this->hasOption( 'nopurge' ) ) {
- $updates[] = 'purge';
- }
}
$updater = DatabaseUpdater::newForDb( $db, $shared, $this );
if ( !$this->hasOption( 'nopurge' ) ) {
$updater->purgeCache();
}
+ $time2 = new MWTimestamp();
- $this->output( "\nDone.\n" );
+ $timeDiff = $time2->diff( $time1 );
+ $this->output( "\nDone in " . $timeDiff->format( "%i:%S" ) . ".\n" );
}
function afterFinalSetup() {
# cache from $wgExtensionFunctions (bug 20471)
$wgLocalisationCacheConf = array(
'class' => 'LocalisationCache',
- 'storeClass' => 'LCStore_Null',
+ 'storeClass' => 'LCStoreNull',
'storeDirectory' => false,
'manualRecache' => false,
);