* @ingroup Maintenance
*/
-define( 'MW_CMDLINE_CALLBACK', 'wfSetupUpdateScript' );
$wgUseMasterForMaintenance = true;
require_once( 'Maintenance.php' );
$this->output( "Done.\n" );
}
-}
-function wfSetupUpdateScript() {
- global $wgLocalisationCacheConf;
-
- # Don't try to access the database
- # This needs to be disabled early since extensions will try to use the l10n
- # cache from $wgExtensionSetupFunctions (bug 20471)
- $wgLocalisationCacheConf = array(
- 'class' => 'LocalisationCache',
- 'storeClass' => 'LCStore_Null',
- 'storeDirectory' => false,
- 'manualRecache' => false,
- );
+ protected function afterFinalSetup() {
+ global $wgLocalisationCacheConf;
+
+ # Don't try to access the database
+ # This needs to be disabled early since extensions will try to use the l10n
+ # cache from $wgExtensionSetupFunctions (bug 20471)
+ $wgLocalisationCacheConf = array(
+ 'class' => 'LocalisationCache',
+ 'storeClass' => 'LCStore_Null',
+ 'storeDirectory' => false,
+ 'manualRecache' => false,
+ );
+ }
}
$maintClass = 'UpdateMediaWiki';