resources: Collapse all jQuery UI modules into one deprecated mega-module
[lhc/web/wiklou.git] / maintenance / rebuildLocalisationCache.php
index 1f4ac85..e5f799d 100644 (file)
@@ -88,7 +88,7 @@ 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()
                        ),
@@ -97,7 +97,8 @@ class RebuildLocalisationCache extends Maintenance {
                        [ function () {
                                MediaWikiServices::getInstance()->getResourceLoader()
                                        ->getMessageBlobStore()->clear();
-                       } ]
+                       } ],
+                       MediaWikiServices::getInstance()->getLanguageNameUtils()
                );
 
                $allCodes = array_keys( Language::fetchLanguageNames( null, 'mwfile' ) );