mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-74266 mod_chat: Add identifier to the 'Past sessions' nav node
This commit is contained in:
parent
34ce1463cc
commit
9e602435a7
1 changed files with 2 additions and 1 deletions
|
@ -1338,7 +1338,8 @@ function chat_extend_settings_navigation(settings_navigation $settings, navigati
|
||||||
if ($chat->studentlogs || has_capability('mod/chat:readlog', $settings->get_page()->cm->context)) {
|
if ($chat->studentlogs || has_capability('mod/chat:readlog', $settings->get_page()->cm->context)) {
|
||||||
if ($DB->get_records_select('chat_messages', "chatid = ? $groupselect", array($chat->id))) {
|
if ($DB->get_records_select('chat_messages', "chatid = ? $groupselect", array($chat->id))) {
|
||||||
$chatnode->add(get_string('pastsessions', 'chat'),
|
$chatnode->add(get_string('pastsessions', 'chat'),
|
||||||
new moodle_url('/mod/chat/report.php', array('id' => $settings->get_page()->cm->id)));
|
new moodle_url('/mod/chat/report.php', array('id' => $settings->get_page()->cm->id)),
|
||||||
|
navigation_node::TYPE_SETTING, null, 'pastsessions');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue