Gerrit Patch Uploader has uploaded a new change for review. https://gerrit.wikimedia.org/r/189714
Change subject: SpecialWhatlinkshere: Mark redirects containing templates ...................................................................... SpecialWhatlinkshere: Mark redirects containing templates Mark redirects containing templates with class "mw-redirect" on Special:WhatLinksHere. Bug: T89098 Change-Id: Icd921c25a9c3542acb44e7175195328f283a1d5c --- M includes/specials/SpecialWhatlinkshere.php 1 file changed, 2 insertions(+), 2 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/14/189714/1 diff --git a/includes/specials/SpecialWhatlinkshere.php b/includes/specials/SpecialWhatlinkshere.php index bbc111f..28be790 100644 --- a/includes/specials/SpecialWhatlinkshere.php +++ b/includes/specials/SpecialWhatlinkshere.php @@ -177,7 +177,7 @@ ); return $dbr->select( array( 'page', 'temp_backlink_range' => "($subQuery)" ), - array( 'page_id', 'page_namespace', 'page_title', 'rd_from' ), + array( 'page_id', 'page_namespace', 'page_title', 'rd_from', 'page_is_redirect' ), array(), __CLASS__ . '::showIndirectLinks', array( 'ORDER BY' => 'page_id', 'LIMIT' => $queryLimit ), @@ -321,7 +321,7 @@ $link = Linker::linkKnown( $nt, null, - array(), + $row->page_is_redirect ? array( 'class' => 'mw-redirect' ) : array(), $query ); -- To view, visit https://gerrit.wikimedia.org/r/189714 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Icd921c25a9c3542acb44e7175195328f283a1d5c Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Gerrit Patch Uploader <gerritpatchuploa...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits