From cf68cbfb09d80920ee6276328cd014e014c2835a Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Thu, 12 Feb 2004 02:33:21 +0000 Subject: [PATCH] Changed default email subject from hard-coded string to LanguageXX.php entry. --- includes/SpecialEmailuser.php | 2 +- languages/Language.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/SpecialEmailuser.php b/includes/SpecialEmailuser.php index ababac206f..4912852182 100644 --- a/includes/SpecialEmailuser.php +++ b/includes/SpecialEmailuser.php @@ -57,7 +57,7 @@ class EmailUserForm { $wgOut->setPagetitle( wfMsg( "emailpage" ) ); $wgOut->addWikiText( wfMsg( "emailpagetext" ) ); - if ( ! $wpSubject ) { $wpSubject = "Wikipedia e-mail"; } + if ( ! $wpSubject ) { $wpSubject = wfMsg( "defemailsubject" ); } $emf = wfMsg( "emailfrom" ); $sender = $wgUser->getName(); diff --git a/languages/Language.php b/languages/Language.php index 1b3ca3c75f..1f779af64a 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -1057,6 +1057,7 @@ his or her user preferences, the form below will send a single message. The e-mail address you entered in your user preferences will appear as the \"From\" address of the mail, so the recipient will be able to reply.", +"defemailsubject" => "$wgSitename e-mail", "noemailtitle" => "No e-mail address", "noemailtext" => "This user has not specified a valid e-mail address, or has chosen not to receive e-mail from other users.", -- 2.20.1