mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-30 09:44:24 +00:00
e86ffeba3a
The Cite extension already had a recursion guard around the parsing of `<references/>`, to prevent another `<ref>` containing `<references/>` from producing a weirdly nested references list. When an explicit `<references/>` tag is not included in the page, or `<ref>` tags exist after the last explicit `<references/>`, the extension automatically adds a reference list at the end of the page, to make the references still displayed. This automatic references list creation was bypassing the recursion guard, causing the weirdly nested output *and* a PHP Notice from `mRefs[$group]` becoming undefined. This commit sets the recursion guard state during that automatic references list creation to prevent this. Bug: T182929 Change-Id: I87737dcf39a4fc15e119a1090a9c34d6b9633c21 |
||
---|---|---|
.. | ||
ApiQueryReferences.php | ||
Cite.php | ||
CiteCSSFileModule.php | ||
CiteDataModule.php | ||
CiteHooks.php |