Jackmcbarn has submitted this change and it was merged.

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(-)

Approvals:
  Jackmcbarn: Verified; Looks good to me, approved



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: merged
Gerrit-Change-Id: Icd921c25a9c3542acb44e7175195328f283a1d5c
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Gerrit Patch Uploader <gerritpatchuploa...@gmail.com>
Gerrit-Reviewer: Gerrit Patch Uploader <gerritpatchuploa...@gmail.com>
Gerrit-Reviewer: Jackmcbarn <jackmcb...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to