mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-13 17:53:09 +00:00
Replcate global variable by MainConfig
Change-Id: I870f9cdbe150e11adba36ce5b65d247188872e46
This commit is contained in:
parent
5da764af7e
commit
f8c9e47118
|
@ -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
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue