* @since 1.17
*
* @param string $caller
+ * @return self (since 1.32)
*/
public function setCaller( $caller ) {
$this->caller = $caller;
+
+ return $this;
}
/**
return false;
}
- global $wgContLang;
- if ( !$wgContLang->needsGenderDistinction() ) {
+ if ( !MediaWikiServices::getInstance()->getContentLanguage()->needsGenderDistinction() ) {
return false;
}