Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-27398 mod_chat Removing PAGE references

  • Loading branch information...
commit 799de151452875081551f26e4fb617f2a327eed9 1 parent f4dfb81
@dmonllao dmonllao authored
Showing with 1 addition and 4 deletions.
  1. +1 −4 mod/chat/chatd.php
View
5 mod/chat/chatd.php
@@ -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();
@@ -720,7 +719,6 @@ function conn_activity_ufo (&$handles) {
}
function message_broadcast($message, $sender) {
- global $PAGE;
if(empty($this->conn_sets)) {
return true;
@@ -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]);
Please sign in to comment.
Something went wrong with that request. Please try again.