Skip to content

Commit

Permalink
MDL-42764 core: added missing string definition
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mdjnelson committed Jan 29, 2018
1 parent 3f8287e commit 4c86ca6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lang/en/moodle.php
Expand Up @@ -710,6 +710,7 @@
If you continue to have difficulty, contact the site administrator.';
$string['emailtoprivatefiles'] = 'You can also e-mail files as attachments straight to your private files space. Simply attach your files to an e-mail and send it to {$a}';
$string['emailtoprivatefilesdenied'] = 'Your administrator has disabled the option to upload your own private files.';
$string['emailuserhasnone'] = 'There is no email address for the user.';
$string['emailvia'] = '{$a->name} (via {$a->siteshortname})';
$string['emptydragdropregion'] = 'empty region';
$string['enable'] = 'Enable';
Expand Down
2 changes: 1 addition & 1 deletion user/message.html
Expand Up @@ -42,7 +42,7 @@
echo '<td>'.$user->email.'</td><td>';
}
if (empty($user->email)) {
$error = get_string('emailempty');
$error = get_string('emailuserhasnone');
}
if (!empty($error)) {
echo $OUTPUT->pix_icon('t/emailno', $error);
Expand Down

0 comments on commit 4c86ca6

Please sign in to comment.