From b0897c3dee75b50b9dbf87dfd0651a43c9e905f7 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Tue, 19 Sep 2017 10:22:47 -0700 Subject: [PATCH] SpecialRecentchangeslinked: Unconditionally join on the page table As we do on SpecialRecentchanges and SpecialWatchlist already, because the last revision filter needs it. Bug: T176228 Change-Id: I65f0f971df24853999ca445f968dd49fb0640066 --- includes/specials/SpecialRecentchangeslinked.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/includes/specials/SpecialRecentchangeslinked.php b/includes/specials/SpecialRecentchangeslinked.php index e353f0cbdd..a13af55de5 100644 --- a/includes/specials/SpecialRecentchangeslinked.php +++ b/includes/specials/SpecialRecentchangeslinked.php @@ -98,11 +98,11 @@ class SpecialRecentChangesLinked extends SpecialRecentChanges { 'wl_namespace=rc_namespace' ] ]; } - if ( $this->getUser()->isAllowed( 'rollback' ) ) { - $tables[] = 'page'; - $join_conds['page'] = [ 'LEFT JOIN', 'rc_cur_id=page_id' ]; - $select[] = 'page_latest'; - } + + // JOIN on page, used for 'last revision' filter highlight + $tables[] = 'page'; + $join_conds['page'] = [ 'LEFT JOIN', 'rc_cur_id=page_id' ]; + $select[] = 'page_latest'; $tagFilter = $opts['tagfilter'] ? explode( '|', $opts['tagfilter'] ) : []; ChangeTags::modifyDisplayQuery( -- 2.20.1