Permalink
Browse files

MDL-27398 mod_chat Removing PAGE references

  • Loading branch information...
1 parent 32b49bb commit bd9cb43e09baf4ba50e33423400b736530c5f77e @dmonllao dmonllao committed Sep 4, 2012
Showing with 1 addition and 4 deletions.
  1. +1 −4 mod/chat/chatd.php
View
@@ -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]);

0 comments on commit bd9cb43

Please sign in to comment.