Index: trunk/phase3/maintenance/rebuildLocalisationCache.php |
— | — | @@ -36,6 +36,8 @@ |
37 | 37 | $this->mDescription = "Rebuild the localisation cache"; |
38 | 38 | $this->addOption( 'force', 'Rebuild all files, even ones not out of date' ); |
39 | 39 | $this->addOption( 'threads', 'Fork more than one thread', false, true ); |
| 40 | + $this->addOption( 'outdir', 'Override the output directory (normally $wgCacheDirectory)', |
| 41 | + false, true ); |
40 | 42 | } |
41 | 43 | |
42 | 44 | public function memoryLimit() { |
— | — | @@ -65,6 +67,9 @@ |
66 | 68 | if ( $force ) { |
67 | 69 | $conf['forceRecache'] = true; |
68 | 70 | } |
| 71 | + if ( $this->hasOption( 'outdir' ) ) { |
| 72 | + $conf['storeDirectory'] = $this->getOption( 'outdir' ); |
| 73 | + } |
69 | 74 | $lc = new LocalisationCache_BulkLoad( $conf ); |
70 | 75 | |
71 | 76 | $codes = array_keys( Language::getLanguageNames( true ) ); |