}
}
- $wgLang = Language::factory( 'en' );
+ $lang = Language::factory( 'en' );
+ // Set global language to ensure localised errors are in English (bug 20633)
+ RequestContext::getMain()->setLanguage( $lang );
+ $wgLang = $lang; // BackCompat
define( 'MW_UPDATER', true );
$this->compatChecks();
} else {
$this->output( "Skipping compatibility checks, proceed at your own risk (Ctrl+C to abort)\n" );
- wfCountdown( 5 );
+ wfCountDown( 5 );
}
// Check external dependencies are up to date
$updates[] = 'stats';
}
- $updater = DatabaseUpdater::newForDb( $db, $shared, $this );
+ $updater = DatabaseUpdater::newForDB( $db, $shared, $this );
$updater->doUpdates( $updates );
foreach ( $updater->getPostDatabaseUpdateMaintenance() as $maint ) {
$time2 = microtime( true );
- $timeDiff = $wgLang->formatTimePeriod( $time2 - $time1 );
+ $timeDiff = $lang->formatTimePeriod( $time2 - $time1 );
$this->output( "\nDone in $timeDiff.\n" );
}