]> git.mjollnir.org Git - moodle.git/commitdiff
Please deliver me from my own incompetence...
authordefacer <defacer>
Mon, 23 Aug 2004 15:42:53 +0000 (15:42 +0000)
committerdefacer <defacer>
Mon, 23 Aug 2004 15:42:53 +0000 (15:42 +0000)
mod/chat/chatd.php

index e1012531d07fc6e04f1a3ab4dbc6da2e80ca493a..f0e6dcd546d61db16d1d9db5d03a46ebb60da7b2 100755 (executable)
@@ -323,7 +323,7 @@ class ChatDaemon {
         socket_close($handle);
     }
 
-    function promote_final($sessionid, $groupid) {
+    function promote_final($sessionid, $groupid, $customdata) {
         if(isset($this->conn_sets[$sessionid])) {
             trace('Set cannot be finalized: Session '.$sessionid.' is already active');
             return false;
@@ -379,10 +379,10 @@ class ChatDaemon {
             'userid'    => $chatuser->userid,
             'groupid'   => $groupid,
             'lang'      => $lang,
-            'quirks'    => $this->conn_sets[$sessionid]['customdata']['quirks']
+            'quirks'    => $customdata['quirks']
         );
 
-        trace('QUIRKS value for this connection is '.$this->conn_sets[$sessionid]['customdata']['quirks']);
+        trace('QUIRKS value for this connection is '.$customdata['quirks']);
 
         $this->dismiss_half($sessionid, false);
         chat_socket_write($this->conn_sets[$sessionid][CHAT_CONNECTION_CHANNEL], $CHAT_HTMLHEAD_JS);
@@ -446,7 +446,7 @@ class ChatDaemon {
                     $this->conn_half[$sessionid][$type] = $handle;
 
                     // Do the bookkeeping
-                    $this->promote_final($sessionid, $groupid);
+                    $this->promote_final($sessionid, $groupid, $customdata);
 
                     // It's not an UFO anymore
                     $this->dismiss_ufo($handle, false);
@@ -558,7 +558,6 @@ class ChatDaemon {
                     chat_socket_write($this->conn_sets[$sessionid][CHAT_CONNECTION_CHANNEL], '<embed src="'.$this->beepsoundsrc.'" autostart="true" hidden="true" />');
                 }
 
-                // Testing for Safari
                 if($info['quirks'] & QUIRK_CHUNK_UPDATE) {
                     $output->html .= $GLOBALS['CHAT_DUMMY_DATA'];
                     $output->html .= $GLOBALS['CHAT_DUMMY_DATA'];