diff --git a/mod/chat/gui_basic/index.php b/mod/chat/gui_basic/index.php index 09c11fa9930..e8c04d62e67 100644 --- a/mod/chat/gui_basic/index.php +++ b/mod/chat/gui_basic/index.php @@ -44,7 +44,7 @@ $context = context_module::instance($cm->id); require_login($course, false, $cm); require_capability('mod/chat:chat', $context); $PAGE->set_pagelayout('base'); -$PAGE->set_popup_notification_allowed(false); // No popup notifications in the chat window +$PAGE->set_popup_notification_allowed(false); /// Check to see if groups are being used here if ($groupmode = groups_get_activity_groupmode($cm)) { // Groups are being used diff --git a/mod/chat/gui_header_js/chatinput.php b/mod/chat/gui_header_js/chatinput.php index d480fe1a35d..95643c7148f 100644 --- a/mod/chat/gui_header_js/chatinput.php +++ b/mod/chat/gui_header_js/chatinput.php @@ -24,6 +24,7 @@ if (!$cm = get_coursemodule_from_instance('chat', $chat->id, $course->id)) { } $PAGE->set_url('/mod/chat/gui_header_js/chatinput.php', array('chat_sid'=>$chat_sid, 'chat_id'=>$chatid)); +$PAGE->set_popup_notification_allowed(false); //Get the user theme $USER = $DB->get_record('user', array('id'=>$chatuser->userid)); diff --git a/mod/chat/gui_header_js/users.php b/mod/chat/gui_header_js/users.php index 56d9ee6aea4..825f0a7e492 100644 --- a/mod/chat/gui_header_js/users.php +++ b/mod/chat/gui_header_js/users.php @@ -9,6 +9,7 @@ $chat_sid = required_param('chat_sid', PARAM_ALPHANUM); $beep = optional_param('beep', 0, PARAM_INT); // beep target $PAGE->set_url('/mod/chat/gui_header_js/users.php', array('chat_sid'=>$chat_sid)); +$PAGE->set_popup_notification_allowed(false); if (!$chatuser = $DB->get_record('chat_users', array('sid'=>$chat_sid))) { print_error('notlogged', 'chat'); diff --git a/mod/chat/gui_sockets/chatinput.php b/mod/chat/gui_sockets/chatinput.php index d0603c2511d..8a9d8640354 100644 --- a/mod/chat/gui_sockets/chatinput.php +++ b/mod/chat/gui_sockets/chatinput.php @@ -8,6 +8,7 @@ require('../lib.php'); $chat_sid = required_param('chat_sid', PARAM_ALPHANUM); $PAGE->set_url('/mod/chat/gui_sockets/chatinput.php', array('chat_sid'=>$chat_sid)); +$PAGE->set_popup_notification_allowed(false); if (!$chatuser = $DB->get_record('chat_users', array('sid'=>$chat_sid))) { print_error('notlogged', 'chat');