This commit is contained in:
Huong Nguyen 2024-08-01 10:56:46 +07:00
commit 3ad448aec7
No known key found for this signature in database
GPG Key ID: 40D88AB693A3E72A
2 changed files with 6 additions and 6 deletions

View File

@ -4080,7 +4080,7 @@ EOD;
'buttontype' => 'message',
'title' => get_string('message', 'message'),
'url' => new moodle_url('/message/index.php', ['id' => $user->id]),
'image' => 'message',
'image' => 't/message',
'linkattributes' => \core_message\helper::messageuser_link_params($user->id),
'page' => $this->page,
],
@ -4117,12 +4117,12 @@ EOD;
$contacttitle = 'addtoyourcontacts';
$contacturlaction = 'addcontact';
}
$contactimage = 'addcontact';
$contactimage = 't/addcontact';
} else {
// If the user is a contact.
$contacttitle = 'removefromyourcontacts';
$contacturlaction = 'removecontact';
$contactimage = 'removecontact';
$contactimage = 't/removecontact';
}
$userbuttons['togglecontact'] = [
'buttontype' => 'togglecontact',

View File

@ -121,7 +121,7 @@ class core_renderer extends \core_renderer {
'buttontype' => 'message',
'title' => get_string('message', 'message'),
'url' => new moodle_url('/message/index.php', array('id' => $user->id)),
'image' => 'message',
'image' => 't/message',
'linkattributes' => \core_message\helper::messageuser_link_params($user->id),
'page' => $this->page
)
@ -158,12 +158,12 @@ class core_renderer extends \core_renderer {
$contacttitle = 'addtoyourcontacts';
$contacturlaction = 'addcontact';
}
$contactimage = 'addcontact';
$contactimage = 't/addcontact';
} else {
// If the user is a contact.
$contacttitle = 'removefromyourcontacts';
$contacturlaction = 'removecontact';
$contactimage = 'removecontact';
$contactimage = 't/removecontact';
}
$userbuttons['togglecontact'] = array(
'buttontype' => 'togglecontact',