From a5c67cdf34f3aeba4656851a2343a8ca1876f40f Mon Sep 17 00:00:00 2001 From: toyomoyo Date: Thu, 22 Nov 2007 01:05:36 +0000 Subject: [PATCH] MDL-10028, adding a string --- lang/en_utf8/message.php | 1 + user/messageselect.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lang/en_utf8/message.php b/lang/en_utf8/message.php index 696dfff800..c84a327367 100644 --- a/lang/en_utf8/message.php +++ b/lang/en_utf8/message.php @@ -33,6 +33,7 @@ $string['message'] = 'Message'; $string['messagehistory'] = 'Message History'; $string['messages'] = 'Messages'; $string['messaging'] = 'Messaging'; +$string['messagingdisabled'] = 'Messaging is disabled on this site, emails will be sent instead'; $string['mycontacts'] = 'My Contacts'; $string['newsearch'] = 'New search'; $string['newonlymsg'] = 'Show only new'; diff --git a/user/messageselect.php b/user/messageselect.php index 28f1e89c6d..0228b632c2 100644 --- a/user/messageselect.php +++ b/user/messageselect.php @@ -71,7 +71,7 @@ // if messaging is disabled on site, we can still allow users with capabilities to send emails instead if (empty($CFG->messaging)) { - notify("Messaging is disabled on this site, emails will be sent instead"); + notify(get_string('messagingdisabled','message')); } if ($count) { -- 2.39.5