Merge "rdbms: use Database::getDomainId for transaction logging calls"
[lhc/web/wiklou.git] / includes / cache / LinkBatch.php
index 30d105b..86dd338 100644 (file)
@@ -57,9 +57,12 @@ class LinkBatch {
         * @since 1.17
         *
         * @param string $caller
+        * @return self (since 1.32)
         */
        public function setCaller( $caller ) {
                $this->caller = $caller;
+
+               return $this;
        }
 
        /**
@@ -222,8 +225,7 @@ class LinkBatch {
                        return false;
                }
 
-               global $wgContLang;
-               if ( !$wgContLang->needsGenderDistinction() ) {
+               if ( !MediaWikiServices::getInstance()->getContentLanguage()->needsGenderDistinction() ) {
                        return false;
                }