X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FrebuildLocalisationCache.php;h=8a519e7178f8b449e07a41a96ce93491cd753f44;hb=03d2f3006048bc404b40b02838bd9fb9b563cced;hp=a239fa0e28a8683f3a9b3bb4f8ac837d358023c1;hpb=2e52f48c2ed8dcf480843e2186f685a86810e2ac;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/rebuildLocalisationCache.php b/maintenance/rebuildLocalisationCache.php index a239fa0e28..8a519e7178 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 ); @@ -92,7 +92,7 @@ class RebuildLocalisationCache extends Maintenance { $conf, MediaWikiServices::getInstance()->getMainConfig() ), - new LCStoreDB( [] ), + LocalisationCache::getStoreFromConf( $conf, $wgCacheDirectory ), LoggerFactory::getInstance( 'localisation' ), [ function () { MediaWikiServices::getInstance()->getResourceLoader()