X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=maintenance%2FrebuildLocalisationCache.php;h=e5f799d7b37404de1152956e327e4c14046d5faa;hb=e3537bdc00244cefdaa34710be0fb0d920336ed8;hp=a239fa0e28a8683f3a9b3bb4f8ac837d358023c1;hpb=4a8fd65caa0d3919d1917920a9d11f8d9355574d;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/rebuildLocalisationCache.php b/maintenance/rebuildLocalisationCache.php index a239fa0e28..e5f799d7b3 100644 --- a/maintenance/rebuildLocalisationCache.php +++ b/maintenance/rebuildLocalisationCache.php @@ -62,7 +62,7 @@ class RebuildLocalisationCache extends Maintenance { } public function execute() { - global $wgLocalisationCacheConf; + global $wgLocalisationCacheConf, $wgCacheDirectory; $force = $this->hasOption( 'force' ); $threads = $this->getOption( 'threads', 1 ); @@ -88,11 +88,11 @@ class RebuildLocalisationCache extends Maintenance { // XXX Copy-pasted from ServiceWiring.php. Do we need a factory for this one caller? $lc = new LocalisationCacheBulkLoad( new ServiceOptions( - LocalisationCache::$constructorOptions, + LocalisationCache::CONSTRUCTOR_OPTIONS, $conf, MediaWikiServices::getInstance()->getMainConfig() ), - new LCStoreDB( [] ), + LocalisationCache::getStoreFromConf( $conf, $wgCacheDirectory ), LoggerFactory::getInstance( 'localisation' ), [ function () { MediaWikiServices::getInstance()->getResourceLoader()