Services: Convert LocalisationCache's static to a const now HHVM is gone
[lhc/web/wiklou.git] / maintenance / rebuildLocalisationCache.php
index 8a519e7..07c5569 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,8 +97,7 @@ class RebuildLocalisationCache extends Maintenance {
                        [ function () {
                                MediaWikiServices::getInstance()->getResourceLoader()
                                        ->getMessageBlobStore()->clear();
-                       } ],
-                       MediaWikiServices::getInstance()->getLanguageNameUtils()
+                       } ]
                );
 
                $allCodes = array_keys( Language::fetchLanguageNames( null, 'mwfile' ) );