Skip to content

Commit

Permalink
MDL-27398 mod_chat Removing PAGE references
Browse files Browse the repository at this point in the history
  • Loading branch information
David Monllao committed Sep 10, 2012
1 parent 6bf9b6a commit 2532c36
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions mod/chat/chatd.php
Expand Up @@ -238,12 +238,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();

Expand Down Expand Up @@ -720,7 +719,6 @@ function conn_activity_ufo (&$handles) {
}

function message_broadcast($message, $sender) {
global $PAGE;

if(empty($this->conn_sets)) {
return true;
Expand All @@ -738,7 +736,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]);

Expand Down

0 comments on commit 2532c36

Please sign in to comment.