class RebuildLocalisationCache extends Maintenance {
public function __construct() {
parent::__construct();
- $this->mDescription = "Rebuild the localisation cache";
+ $this->addDescription( 'Rebuild the localisation cache' );
$this->addOption( 'force', 'Rebuild all files, even ones not out of date' );
$this->addOption( 'threads', 'Fork more than one thread', false, true );
$this->addOption( 'outdir', 'Override the output directory (normally $wgCacheDirectory)',
false, true );
}
- public function memoryLimit() {
- if ( $this->hasOption( 'memory-limit' ) ) {
- return parent::memoryLimit();
- }
-
- return '1000M';
- }
-
public function finalSetup() {
# This script needs to be run to build the inital l10n cache. But if
# $wgLanguageCode is not 'en', it won't be able to run because there is