X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fdeferred%2FLinksUpdate.php;h=ae3c66008c26110e70d85c45d0a332a3aac8e7c9;hb=90d4f56fe46140f9e97e2fa72698f98b57447fe5;hp=141888cda6e2a241de1791caee6275826696a347;hpb=32e04d6148b02352fdee4f431f81450487cfd9a3;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/deferred/LinksUpdate.php b/includes/deferred/LinksUpdate.php index 141888cda6..ae3c66008c 100644 --- a/includes/deferred/LinksUpdate.php +++ b/includes/deferred/LinksUpdate.php @@ -581,12 +581,13 @@ class LinksUpdate extends DataUpdate implements EnqueueableDataUpdate { * @return array */ private function getCategoryInsertions( $existing = [] ) { - global $wgContLang, $wgCategoryCollation; + global $wgCategoryCollation; $diffs = array_diff_assoc( $this->mCategories, $existing ); $arr = []; foreach ( $diffs as $name => $prefix ) { $nt = Title::makeTitleSafe( NS_CATEGORY, $name ); - $wgContLang->findVariantLink( $name, $nt, true ); + MediaWikiServices::getInstance()->getContentLanguage()-> + findVariantLink( $name, $nt, true ); $type = MWNamespace::getCategoryLinkType( $this->mTitle->getNamespace() );