mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-23 22:45:20 +00:00
Wrap extension token so that it won't be exposed
Alternative to I6ea271a5d5c7b12a13bb12a682c39bcfd7b1f116 We can follow this up by passing the ExtensionTag to the ExtensionTagHandler constructor. Change-Id: I5b1b191bc85968ad617eb3ebcdd7721c55006af2
This commit is contained in:
parent
e29b51ebcc
commit
cdf8ac149b
|
@ -530,10 +530,10 @@ class References extends ExtensionTagHandler {
|
|||
$docBody,
|
||||
$refsOpts,
|
||||
function ( $dp ) use ( $extApi ) {
|
||||
$dp->src = $extApi->getExtSource();
|
||||
$dp->src = $extApi->extTag->getSource();
|
||||
// Setting redundant info on fragment.
|
||||
// $docBody->firstChild info feels cumbersome to use downstream.
|
||||
if ( $extApi->isSelfClosedExtTag() ) {
|
||||
if ( $extApi->extTag->isSelfClosed() ) {
|
||||
$dp->selfClose = true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue