mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 01:46:45 +02:00
MDL-55942 core_message: moved added functionality from message/lib.php
This commit is contained in:
parent
c598f278ca
commit
79f6c36c12
9 changed files with 629 additions and 556 deletions
|
@ -4176,7 +4176,7 @@ EOD;
|
|||
'sesskey' => sesskey())
|
||||
),
|
||||
'image' => $contactimage,
|
||||
'linkattributes' => message_togglecontact_link_params($user, $iscontact),
|
||||
'linkattributes' => \core_message\helper::togglecontact_link_params($user, $iscontact),
|
||||
'page' => $this->page
|
||||
),
|
||||
);
|
||||
|
@ -4238,7 +4238,7 @@ EOD;
|
|||
if (!isset($button->page)) {
|
||||
// Include js for messaging.
|
||||
if ($button['buttontype'] === 'togglecontact') {
|
||||
message_togglecontact_requirejs();
|
||||
\core_message\helper::togglecontact_requirejs();
|
||||
}
|
||||
$image = $this->pix_icon($button['formattedimage'], $button['title'], 'moodle', array(
|
||||
'class' => 'iconsmall',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue