Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

MDL-27398 mod_chat Removing PAGE references

  • Loading branch information...
commit 2532c36ea30739ae620513a523e7f8e62a096f8f 1 parent 6bf9b6a
David Monllaó dmonllao authored

Showing 1 changed file with 1 addition and 4 deletions. Show diff stats Hide diff stats

  1. +1 4 mod/chat/chatd.php
5 mod/chat/chatd.php
@@ -238,12 +238,11 @@ function user_lazy_update($sessionid) {
238 238 }
239 239
240 240 function get_user_window($sessionid) {
241   - global $CFG, $PAGE, $OUTPUT;
  241 + global $CFG, $OUTPUT;
242 242
243 243 static $str;
244 244
245 245 $info = &$this->sets_info[$sessionid];
246   - $PAGE->set_course($info['course']);
247 246
248 247 $timenow = time();
249 248
@@ -720,7 +719,6 @@ function conn_activity_ufo (&$handles) {
720 719 }
721 720
722 721 function message_broadcast($message, $sender) {
723   - global $PAGE;
724 722
725 723 if(empty($this->conn_sets)) {
726 724 return true;
@@ -738,7 +736,6 @@ function message_broadcast($message, $sender) {
738 736 {
739 737
740 738 // Simply give them the message
741   - $PAGE->set_course($info['course']);
742 739 $output = chat_format_message_manually($message, $info['courseid'], $sender, $info['user']);
743 740 $this->trace('Delivering message "'.$output->text.'" to '.$this->conn_sets[$sessionid][CHAT_CONNECTION_CHANNEL]);
744 741

0 comments on commit 2532c36

Please sign in to comment.
Something went wrong with that request. Please try again.