-
Improvement
-
Resolution: Unresolved
-
Minor
-
2.4.5, 2.5.1, 2.6, 2.7.11, 2.8.9, 2.9.3, 3.0.1, 4.1
-
MOODLE_24_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE, MOODLE_28_STABLE, MOODLE_29_STABLE, MOODLE_30_STABLE, MOODLE_401_STABLE
-
master
-
Easy
-
- Register as a new user
- Check the email sent
- Change language strings
- Register as a new user
- Check the email sent uses updated string
Hi,
I found that the string['emailconfirmation'] uses a parameter firstname which contains the fullname of a user.
In moodle/lib/moodlelib.php you will find the function send_confirmation_email($user) where Moodle allocates the wrong thing.
$data->firstname = fullname($user);
|
I found this problem in the language packs. The starts with the following words:
Hi {$a->firstname},
|
A new account has been requested at '{$a->sitename}' using your email address.
|
You see the firstname parameter in the string but Moodle sends the full name.
In other functions you will find the correct allocation, for example in the function send_password_change_confirmation_email($user).
$data->firstname = $user->firstname;
|
$data->lastname = $user->lastname;
|
The string['emailpasswordchangeinfo'] only uses the first name in the english version
Hi {$a->firstname},
|
Someone (probably you) has requested a new password for your account on '{$a->sitename}'.
|
but in the german language pack we are using both names.
Guten Tag {$a->firstname} {$a->lastname},
|
jemand (wahrscheinlich Sie) hat ein neues Kennwort für Ihren Zugang auf '{$a->sitename}' angefordert.
|
Best regards, Ralf
- has been marked as being related by
-
MDLSITE-6572 Moodle.org new account confirmation email contained {$a->firstname} placeholder
-
- Resolved
-
-
MDL-66224 Create custom renderer and methods for emails
-
- Open
-