Drop single-use variable

Change-Id: Idb9801cc1f414088841afc2f18a056be65b695d1
This commit is contained in:
Adam Wight 2019-11-29 19:24:47 +01:00
parent 22627f074d
commit 6922f5201b

View file

@ -65,8 +65,6 @@ class FootnoteMarkFormatter {
* @return string
*/
public function linkRef( $group, $key, $count, $label, $subkey ) {
$contLang = MediaWikiServices::getInstance()->getContentLanguage();
return $this->parser->recursiveTagParse(
wfMessage(
'cite_reference_link',
@ -75,7 +73,8 @@ class FootnoteMarkFormatter {
Sanitizer::safeEncodeAttribute(
$this->getLinkLabel( $label, $group,
( ( $group === Cite::DEFAULT_GROUP ) ? '' : "$group " ) .
$contLang->formatNum( $label ) )
MediaWikiServices::getInstance()->getContentLanguage()
->formatNum( $label ) )
)
)->inContentLanguage()->plain()
);