Change Special:Mute link on email footer to be in plain text
authorDayllan Maza <dmaza@wikimedia.org>
Wed, 26 Jun 2019 19:55:11 +0000 (15:55 -0400)
committerDayllan Maza <dmaza@wikimedia.org>
Fri, 28 Jun 2019 15:04:43 +0000 (11:04 -0400)
Emails from Special:EmailUser are in plain text. The old link was
an html tag and it was not being displayed properly.

Bug: T218265
Change-Id: Id5f3b8e3a549c06010e41b5a6f10eb46c5d00a40

includes/specials/SpecialEmailUser.php
languages/i18n/en.json

index 122fa9b..b42cdea 100644 (file)
@@ -381,7 +381,7 @@ class SpecialEmailUser extends UnlistedSpecialPage {
                                'specialmute-email-footer',
                                $specialMutePage->getCanonicalURL(),
                                $context->getUser()->getName()
-                       );
+                       )->inContentLanguage()->text();
                }
 
                // Check and increment the rate limits
index 244b281..e33e9bd 100644 (file)
        "specialmute-error-invalid-user": "The username requested could not be found.",
        "specialmute-error-email-blacklist-disabled": "Muting users from sending you emails is not enabled.",
        "specialmute-error-email-preferences": "You must confirm your email address before you can mute a user. You may do so from [[Special:Preferences]].",
-       "specialmute-email-footer": "[$1 Manage email preferences for {{BIDI:$2}}.]",
+       "specialmute-email-footer": "To manage email preferences for {{BIDI:$2}} please visit <$1>.",
        "specialmute-login-required": "Please log in to change your mute preferences.",
        "revid": "revision $1",
        "pageid": "page ID $1",