dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Use local variabe $services instead of MediaWikiServices::getInstance()"
[lhc/web/wiklou.git]
/
maintenance
/
rebuildLocalisationCache.php
diff --git
a/maintenance/rebuildLocalisationCache.php
b/maintenance/rebuildLocalisationCache.php
index
a239fa0
..
8a519e7
100644
(file)
--- a/
maintenance/rebuildLocalisationCache.php
+++ b/
maintenance/rebuildLocalisationCache.php
@@
-62,7
+62,7
@@
class RebuildLocalisationCache extends Maintenance {
}
public function execute() {
}
public function execute() {
- global $wgLocalisationCacheConf;
+ global $wgLocalisationCacheConf
, $wgCacheDirectory
;
$force = $this->hasOption( 'force' );
$threads = $this->getOption( 'threads', 1 );
$force = $this->hasOption( 'force' );
$threads = $this->getOption( 'threads', 1 );
@@
-92,7
+92,7
@@
class RebuildLocalisationCache extends Maintenance {
$conf,
MediaWikiServices::getInstance()->getMainConfig()
),
$conf,
MediaWikiServices::getInstance()->getMainConfig()
),
-
new LCStoreDB( []
),
+
LocalisationCache::getStoreFromConf( $conf, $wgCacheDirectory
),
LoggerFactory::getInstance( 'localisation' ),
[ function () {
MediaWikiServices::getInstance()->getResourceLoader()
LoggerFactory::getInstance( 'localisation' ),
[ function () {
MediaWikiServices::getInstance()->getResourceLoader()