From b02295039ec1bd278d2d0c97cfb27d4f475dffd4 Mon Sep 17 00:00:00 2001 From: Mark Nelson Date: Mon, 29 Jan 2018 19:04:41 +0800 Subject: [PATCH] MDL-42764 core: added missing string definition Also changed the string index so it was not vague. The index 'emailempty' appears as if it could belong to a validation method for a form. --- lang/en/moodle.php | 1 + user/message.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lang/en/moodle.php b/lang/en/moodle.php index 80b20b6611e..207a5220c9c 100644 --- a/lang/en/moodle.php +++ b/lang/en/moodle.php @@ -710,6 +710,7 @@ $string['emailresetconfirmsent'] = 'An email has been sent to your address at '.$user->email.''; } if (empty($user->email)) { - $error = get_string('emailempty'); + $error = get_string('emailuserhasnone'); } if (!empty($error)) { echo $OUTPUT->pix_icon('t/emailno', $error);