Merge "Hygiene: use null-coalescing operator when operating on tags"
[lhc/web/wiklou.git] / includes / resourceloader / ResourceLoaderModule.php
index aed036b..eb174f0 100644 (file)
@@ -943,7 +943,7 @@ abstract class ResourceLoaderModule implements LoggerAwareInterface {
                if ( !$this->getConfig()->get( 'ResourceLoaderValidateJS' ) ) {
                        return $contents;
                }
-               $cache = ObjectCache::getMainWANInstance();
+               $cache = MediaWikiServices::getInstance()->getMainWANObjectCache();
                return $cache->getWithSetCallback(
                        $cache->makeGlobalKey(
                                'resourceloader',