Add mute preferences link to the tools menu
authorDayllan Maza <dmaza@wikimedia.org>
Wed, 10 Jul 2019 17:47:07 +0000 (13:47 -0400)
committerDayllan Maza <dmaza@wikimedia.org>
Tue, 16 Jul 2019 21:38:47 +0000 (17:38 -0400)
commitc461b8d6fd9d879dc75daa372118b5795018e141
tree8d97e669c86df0e1fa8a4e342745c376501dd4e6
parent35a327526d8d0175fe5bb7c2b882423647b12bbe
Add mute preferences link to the tools menu

A link to Special:Mute is added to the tools menu on the sidebar
if the user is logged in and a registered relevant-user* is found
Mute preferences link will not be shown if $wgEnableSpecialMute is false

* From Skin::getRelevantUser: Special pages like Special:Contributions mark
  the user which  they are relevant to so that things like the toolbox can
  display the information they usually are only able to display on a
  user's userpage and talkpage.

Bug: T218270
Change-Id: I89eb8373963d28d52a026b60aa42d1c64b31b7c6
includes/skins/BaseTemplate.php
includes/skins/SkinTemplate.php
languages/i18n/en.json
languages/i18n/qqq.json