From: Daimona Eaytoy Date: Wed, 30 May 2018 15:35:02 +0000 (+0200) Subject: Use makeLink instead of makeKnownLink on Special:WhatLinksHere X-Git-Tag: 1.34.0-rc.0~5220^2 X-Git-Url: http://git.cyclocoop.org/%22%22._DIR_PLUGIN_FULLCALENDAR.%22prive/themes/spip/images/event_edit.png/ecrire/?a=commitdiff_plain;h=82ad0a2b6f043e2b35fbf82b81e7399d971cbc19;p=lhc%2Fweb%2Fwiklou.git 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 --- 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, [],