Check for multiples doesn't apply to follows

Follow up to 7bd9f87

Bug: T276388
Change-Id: I68ab87702b967e870c432564b54d86bcbf914174
This commit is contained in:
Arlo Breault 2021-03-03 18:07:17 -05:00
parent e047ff7afc
commit be829c15b0

View file

@ -294,7 +294,7 @@ class References extends ExtensionTagHandler {
// HTML inline for all of them. // HTML inline for all of them.
$html = ''; $html = '';
$contentDiffers = false; $contentDiffers = false;
if ( $ref->hasMultiples ) { if ( $ref->hasMultiples && !$validFollow ) {
// FIXME: Strip the mw:Cite/Follow wrappers // FIXME: Strip the mw:Cite/Follow wrappers
// See the test, "Forward-referenced ref with magical follow edge case" // See the test, "Forward-referenced ref with magical follow edge case"
$html = $extApi->domToHtml( $c, true, true ); $html = $extApi->domToHtml( $c, true, true );