mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-28 00:40:12 +00:00
Minor fixes to Cite port
Change-Id: Iccd6823c572059948e5ad1a7c91d567d39494934
This commit is contained in:
parent
3f0b81b085
commit
bc72a99fb2
|
@ -117,7 +117,8 @@ class RefGroup {
|
|||
$li->insertBefore( $span, $reftextSpan );
|
||||
|
||||
foreach ( $ref->linkbacks as $i => $lb ) {
|
||||
$span->appendChild( self::createLinkback( $lb, $refGroup, (string)( $i + 1 ), $ownerDoc, $env )
|
||||
$span->appendChild(
|
||||
self::createLinkback( $lb, $refGroup, (string)( $i + 1 ), $ownerDoc, $env )
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -185,7 +185,10 @@ class References implements ExtensionTag, SerialHandler {
|
|||
]
|
||||
);
|
||||
DOMDataUtils::addTypeOf( $linkBack, 'mw:Extension/ref' );
|
||||
$dataParsoid = (object)[ 'src' => $nodeDp->src ];
|
||||
$dataParsoid = (object)[];
|
||||
if ( isset( $nodeDp->src ) ) {
|
||||
$dataParsoid->src = $nodeDp->src;
|
||||
}
|
||||
if ( isset( $nodeDp->dsr ) ) {
|
||||
$dataParsoid->dsr = $nodeDp->dsr;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue