Add Related Changes Link for all categories
authorshanika <shanika.13@cse.mrt.ac.lk>
Fri, 27 Jan 2017 06:35:39 +0000 (12:05 +0530)
committershanika <shanika.13@cse.mrt.ac.lk>
Sat, 28 Jan 2017 02:48:44 +0000 (08:18 +0530)
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

includes/skins/SkinTemplate.php

index bf260aa..1a0317a 100644 (file)
@@ -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()
                                ];