Toolbox: Mark RecentChangesLinked link as nofollow
authorJames D. Forrester <jforrester@wikimedia.org>
Wed, 21 Sep 2016 00:45:31 +0000 (17:45 -0700)
committerJames D. Forrester <jforrester@wikimedia.org>
Wed, 21 Sep 2016 00:51:31 +0000 (17:51 -0700)
Bug: T146233
Change-Id: I2dd0b3a179dc0d1d7210d98748f45e75f953d2bf

includes/skins/BaseTemplate.php

index 2d37a0f..87865df 100644 (file)
@@ -55,7 +55,6 @@ abstract class BaseTemplate extends QuickTemplate {
         * @return array
         */
        function getToolbox() {
-
                $toolbox = [];
                if ( isset( $this->data['nav_urls']['whatlinkshere'] )
                        && $this->data['nav_urls']['whatlinkshere']
@@ -69,6 +68,7 @@ abstract class BaseTemplate extends QuickTemplate {
                        $toolbox['recentchangeslinked'] = $this->data['nav_urls']['recentchangeslinked'];
                        $toolbox['recentchangeslinked']['msg'] = 'recentchangeslinked-toolbox';
                        $toolbox['recentchangeslinked']['id'] = 't-recentchangeslinked';
+                       $toolbox['recentchangeslinked']['rel'] = 'nofollow';
                }
                if ( isset( $this->data['feeds'] ) && $this->data['feeds'] ) {
                        $toolbox['feeds']['id'] = 'feedlinks';