r112076 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r112075‎ | r112076 | r112077 >
Date:02:09, 22 February 2012
Author:tstarling
Status:ok
Tags:
Comment:
Output directory option, to allow messages to be put directly into /h/w/c
Modified paths:
  • /trunk/phase3/maintenance/rebuildLocalisationCache.php (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/rebuildLocalisationCache.php
@@ -36,6 +36,8 @@
3737 $this->mDescription = "Rebuild the localisation cache";
3838 $this->addOption( 'force', 'Rebuild all files, even ones not out of date' );
3939 $this->addOption( 'threads', 'Fork more than one thread', false, true );
 40+ $this->addOption( 'outdir', 'Override the output directory (normally $wgCacheDirectory)',
 41+ false, true );
4042 }
4143
4244 public function memoryLimit() {
@@ -65,6 +67,9 @@
6668 if ( $force ) {
6769 $conf['forceRecache'] = true;
6870 }
 71+ if ( $this->hasOption( 'outdir' ) ) {
 72+ $conf['storeDirectory'] = $this->getOption( 'outdir' );
 73+ }
6974 $lc = new LocalisationCache_BulkLoad( $conf );
7075
7176 $codes = array_keys( Language::getLanguageNames( true ) );

Sign-offs

UserFlagDate
Nikerabbitinspected08:12, 22 February 2012

Follow-up revisions

RevisionCommit summaryAuthorDate
r112077MFT r112076tstarling02:11, 22 February 2012
r112078MFT r112076tstarling02:12, 22 February 2012

Status & tagging log