mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 06:24:08 +00:00
Ensure Parsoid doesn't throw when <ref> is used w/o Cite installed
Parsoid always enables `<ref>` processing, but our Cite extension implementation tries to fetch $wgCiteResponsiveReferences, which won't be set if the Cite extension is not installed. Change-Id: Idde8af07e5bf40983b2ec878ebf70aabb522a800 (cherry picked from commit 0ca4ae6908b626d34f8445d9048342378d0e3c23)
This commit is contained in:
parent
f140796f0a
commit
29d3e25b4a
|
@ -396,7 +396,8 @@ class SiteConfig extends ISiteConfig {
|
|||
public function responsiveReferences(): array {
|
||||
// @todo This is from the Cite extension, which shouldn't be known about by core
|
||||
return [
|
||||
'enabled' => $this->config->get( 'CiteResponsiveReferences' ),
|
||||
'enabled' => $this->config->has( 'CiteResponsiveReferences' ) ?
|
||||
$this->config->get( 'CiteResponsiveReferences' ) : false,
|
||||
'threshold' => 10,
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue