Merge "ContributionsPager: Format all rows if the pager only has revisions"

This commit is contained in:
jenkins-bot 2024-10-18 16:31:26 +00:00 committed by Gerrit Code Review
commit 3a4b9fe3f1

View file

@ -969,7 +969,7 @@ abstract class ContributionsPager extends RangeChronologicalPager {
// ContributionsLineEnding hook below.
// FIXME: have some better way for extensions to provide formatted rows.
$this->currentRevRecord = $this->tryCreatingRevisionRecord( $row, $this->currentPage );
if ( $this->currentRevRecord && $this->currentPage ) {
if ( $this->revisionsOnly || ( $this->currentRevRecord && $this->currentPage ) ) {
$attribs['data-mw-revid'] = $this->currentRevRecord->getId();
$link = $this->formatArticleLink( $row );