1
0
mirror of https://github.com/moodle/moodle.git synced 2025-04-24 18:04:43 +02:00

Merge branch 'MDL-32665_chat_popup' of git://github.com/andyjdavis/moodle

This commit is contained in:
Aparup Banerjee 2012-07-23 10:17:55 +08:00
commit d829f5c6fd
2 changed files with 2 additions and 0 deletions
mod/chat
gui_ajax
gui_basic

@ -11,6 +11,7 @@ if ($groupid !== 0) {
$url->param('groupid', $groupid);
}
$PAGE->set_url($url);
$PAGE->set_popup_notification_allowed(false); // No popup notifications in the chat window
$chat = $DB->get_record('chat', array('id'=>$id), '*', MUST_EXIST);
$course = $DB->get_record('course', array('id'=>$chat->course), '*', MUST_EXIST);

@ -44,6 +44,7 @@ $context = get_context_instance(CONTEXT_MODULE, $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
/// Check to see if groups are being used here
if ($groupmode = groups_get_activity_groupmode($cm)) { // Groups are being used