From: shanika Date: Fri, 27 Jan 2017 06:35:39 +0000 (+0530) Subject: Add Related Changes Link for all categories X-Git-Tag: 1.31.0-rc.0~4211 X-Git-Url: https://git.heureux-cyclage.org/?a=commitdiff_plain;h=21173d4c1a2992a7476a8cc58afc107e16854e66;p=lhc%2Fweb%2Fwiklou.git Add Related Changes Link for all categories Add Related Changes link into the toolbox for the redlinked categories as well since users need to see changes made in these categories as well. Bug: T147762 Change-Id: Ic5dd6f531b5ff47ce68fd2893fd1550d10f74e4e --- diff --git a/includes/skins/SkinTemplate.php b/includes/skins/SkinTemplate.php index bf260aa464..1a0317abde 100644 --- a/includes/skins/SkinTemplate.php +++ b/includes/skins/SkinTemplate.php @@ -1283,7 +1283,7 @@ class SkinTemplate extends Skin { 'href' => $this->getTitle()->getLocalURL( "action=info" ) ]; - if ( $this->getTitle()->exists() ) { + if ( $this->getTitle()->exists() || $this->getTitle()->inNamespace( NS_CATEGORY ) ) { $nav_urls['recentchangeslinked'] = [ 'href' => SpecialPage::getTitleFor( 'Recentchangeslinked', $this->thispage )->getLocalURL() ];