);
}
if ( $rc->mAttribs['rc_type'] == RC_CATEGORIZE ) {
- $diffhist = $diffLink . $this->message['pipe-separator'] . $this->message['hist'];
+ $histLink = $this->message['hist'];
} else {
- $diffhist = $diffLink . $this->message['pipe-separator'];
- # History link
- $diffhist .= $this->linkRenderer->makeKnownLink(
+ $histLink = $this->linkRenderer->makeKnownLink(
$rc->getTitle(),
new HtmlArmor( $this->message['hist'] ),
[ 'class' => 'mw-changeslist-history' ],
);
}
- // @todo FIXME: Hard coded ". .". Is there a message for this? Should there be?
- $s .= $this->msg( 'parentheses' )->rawParams( $diffhist )->escaped() .
- ' <span class="mw-changeslist-separator">. .</span> ';
+ $s .= Html::rawElement( 'div', [ 'class' => 'mw-changeslist-links' ],
+ Html::rawElement( 'span', [], $diffLink ) .
+ Html::rawElement( 'span', [], $histLink )
+ ) .
+ ' <span class="mw-changeslist-separator"></span> ';
}
/**
htmlspecialchars( $this->getLanguage()->userTime(
$rc->mAttribs['rc_timestamp'],
$this->getUser()
- ) ) . '</span> <span class="mw-changeslist-separator">. .</span> ';
+ ) ) . '</span> <span class="mw-changeslist-separator"></span> ';
}
/**
if ( $this->getConfig()->get( 'RCShowChangedSize' ) ) {
$cd = $this->formatCharacterDifference( $rc );
if ( $cd !== '' ) {
- $html .= $cd . ' <span class="mw-changeslist-separator">. .</span> ';
+ $html .= $cd . ' <span class="mw-changeslist-separator"></span> ';
}
}