From: Tim Starling Date: Wed, 22 Feb 2012 02:09:05 +0000 (+0000) Subject: Output directory option, to allow messages to be put directly into /h/w/c X-Git-Tag: 1.31.0-rc.0~24574 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=691e79c40581fe3882e962e335937173ba78661d;p=lhc%2Fweb%2Fwiklou.git Output directory option, to allow messages to be put directly into /h/w/c --- diff --git a/maintenance/rebuildLocalisationCache.php b/maintenance/rebuildLocalisationCache.php index ee3be9d16e..41ffa28595 100644 --- a/maintenance/rebuildLocalisationCache.php +++ b/maintenance/rebuildLocalisationCache.php @@ -36,6 +36,8 @@ class RebuildLocalisationCache extends Maintenance { $this->mDescription = "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() { @@ -65,6 +67,9 @@ class RebuildLocalisationCache extends Maintenance { if ( $force ) { $conf['forceRecache'] = true; } + if ( $this->hasOption( 'outdir' ) ) { + $conf['storeDirectory'] = $this->getOption( 'outdir' ); + } $lc = new LocalisationCache_BulkLoad( $conf ); $codes = array_keys( Language::getLanguageNames( true ) );