From 82ad0a2b6f043e2b35fbf82b81e7399d971cbc19 Mon Sep 17 00:00:00 2001 From: Daimona Eaytoy Date: Wed, 30 May 2018 17:35:02 +0200 Subject: [PATCH] Use makeLink instead of makeKnownLink on Special:WhatLinksHere Per I11e663cbce32b4199f16df6ed1e9b980630ece7a, makeKnownLink is used for "linkshere" related messages. However, it always shows a blue link, even if the page doesn't exist. Instead, use makeLink to get the old behaviour back. Bug: T195933 Change-Id: I92ad23dc7bd064a1a95a14f19cd3f134b4c98570 --- includes/specials/SpecialWhatlinkshere.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/specials/SpecialWhatlinkshere.php b/includes/specials/SpecialWhatlinkshere.php index 0f3bea7bb6..942346e145 100644 --- a/includes/specials/SpecialWhatlinkshere.php +++ b/includes/specials/SpecialWhatlinkshere.php @@ -209,7 +209,7 @@ class SpecialWhatLinksHere extends IncludableSpecialPage { $out->addHTML( $this->getFilterPanel() ); } $msgKey = is_int( $namespace ) ? 'nolinkshere-ns-2' : 'nolinkshere-2'; - $link = $this->getLinkRenderer()->makeKnownLink( + $link = $this->getLinkRenderer()->makeLink( $this->target, null, [], @@ -285,7 +285,7 @@ class SpecialWhatLinksHere extends IncludableSpecialPage { $out->addHTML( $this->whatlinkshereForm() ); $out->addHTML( $this->getFilterPanel() ); - $link = $this->getLinkRenderer()->makeKnownLink( + $link = $this->getLinkRenderer()->makeLink( $this->target, null, [], -- 2.20.1