Merge "Avoid deprecated LinkCache::singleton()"
[lhc/web/wiklou.git] / includes / parser / CoreParserFunctions.php
index 42d5db7..99ca07a 100644 (file)
@@ -1162,7 +1162,7 @@ class CoreParserFunctions {
                }
 
                // Check the link cache, maybe something already looked it up.
-               $linkCache = LinkCache::singleton();
+               $linkCache = MediaWikiServices::getInstance()->getLinkCache();
                $pdbk = $t->getPrefixedDBkey();
                $id = $linkCache->getGoodLinkID( $pdbk );
                if ( $id != 0 ) {