From bd9cb43e09baf4ba50e33423400b736530c5f77e Mon Sep 17 00:00:00 2001 From: David Monllao Date: Tue, 4 Sep 2012 10:24:45 +0800 Subject: [PATCH] MDL-27398 mod_chat Removing PAGE references --- mod/chat/chatd.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/mod/chat/chatd.php b/mod/chat/chatd.php index ff86aaa6eed48..b1879913e8286 100644 --- a/mod/chat/chatd.php +++ b/mod/chat/chatd.php @@ -237,12 +237,11 @@ function user_lazy_update($sessionid) { } function get_user_window($sessionid) { - global $CFG, $PAGE, $OUTPUT; + global $CFG, $OUTPUT; static $str; $info = &$this->sets_info[$sessionid]; - $PAGE->set_course($info['course']); $timenow = time(); @@ -719,7 +718,6 @@ function conn_activity_ufo (&$handles) { } function message_broadcast($message, $sender) { - global $PAGE; if(empty($this->conn_sets)) { return true; @@ -737,7 +735,6 @@ function message_broadcast($message, $sender) { { // Simply give them the message - $PAGE->set_course($info['course']); $output = chat_format_message_manually($message, $info['courseid'], $sender, $info['user']); $this->trace('Delivering message "'.$output->text.'" to '.$this->conn_sets[$sessionid][CHAT_CONNECTION_CHANNEL]);