mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/13223] Fix USERNAME email template variable in notification
admin_activate_user.php notification type is assigning usernames to email template variables using user_loader->get_username() in 'no_profile' mode, which in its turn calls get_username_string() function in 'no_profile' mode. This causes HTML markup in emails for username colour. PHPBB3-13223
This commit is contained in:
parent
7f347a290c
commit
5431aa6391
1 changed files with 1 additions and 1 deletions
|
@ -131,7 +131,7 @@ class admin_activate_user extends \phpbb\notification\type\base
|
||||||
public function get_email_template_variables()
|
public function get_email_template_variables()
|
||||||
{
|
{
|
||||||
$board_url = generate_board_url();
|
$board_url = generate_board_url();
|
||||||
$username = $this->user_loader->get_username($this->item_id, 'no_profile');
|
$username = $this->user_loader->get_username($this->item_id, 'username');
|
||||||
|
|
||||||
return array(
|
return array(
|
||||||
'USERNAME' => htmlspecialchars_decode($username),
|
'USERNAME' => htmlspecialchars_decode($username),
|
||||||
|
|
Loading…
Add table
Reference in a new issue