mirror of
https://github.com/moodle/moodle.git
synced 2025-02-12 03:26:34 +01:00
Merge branch 'MDL-82629' of https://github.com/paulholden/moodle
This commit is contained in:
commit
3ad448aec7
@ -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',
|
||||
|
@ -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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user