From: Roan Kattouw Date: Tue, 19 Sep 2017 17:22:47 +0000 (-0700) Subject: SpecialRecentchangeslinked: Unconditionally join on the page table X-Git-Tag: 1.31.0-rc.0~2041^2 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=b0897c3dee75b50b9dbf87dfd0651a43c9e905f7;p=lhc%2Fweb%2Fwiklou.git 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 --- 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(