mediawiki-extensions-Cite/includes
Timo Tijhof e86ffeba3a Deal with <references/> inside a <ref> in automatic references list
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
2018-07-25 15:39:20 +00:00
..
ApiQueryReferences.php Add phan configuration for static analysis 2017-12-29 11:50:01 -08:00
Cite.php Deal with <references/> inside a <ref> in automatic references list 2018-07-25 15:39:20 +00:00
CiteCSSFileModule.php Use standard form for @license tags 2018-03-20 03:18:37 +00:00
CiteDataModule.php CiteDataModule: Remove origin restriction 2018-04-30 22:18:06 +02:00
CiteHooks.php Don't expect objects by reference in hook handlers 2018-05-17 17:09:55 +00:00