mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-15 02:55:04 +00:00
Drop single-use variable
Change-Id: Idb9801cc1f414088841afc2f18a056be65b695d1
This commit is contained in:
parent
22627f074d
commit
6922f5201b
|
@ -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()
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue