Replcate global variable by MainConfig

Change-Id: I870f9cdbe150e11adba36ce5b65d247188872e46
This commit is contained in:
Fomafix 2024-04-18 10:30:54 +00:00
parent 5da764af7e
commit f8c9e47118

View file

@ -304,12 +304,12 @@ class Cite {
string $group,
string $responsive = null
): string {
global $wgCiteResponsiveReferences;
$responsiveReferences = MediaWikiServices::getInstance()->getMainConfig()->get( 'CiteResponsiveReferences' );
return $this->referenceListFormatter->formatReferences(
$parser,
$this->referenceStack->popGroup( $group ),
$responsive !== null ? $responsive !== '0' : $wgCiteResponsiveReferences,
$responsive !== null ? $responsive !== '0' : $responsiveReferences,
$this->isSectionPreview
);
}