]> git.mjollnir.org Git - moodle.git/commitdiff
CHAT_MOD/MDL-14651
authordongsheng <dongsheng>
Wed, 19 Nov 2008 08:12:00 +0000 (08:12 +0000)
committerdongsheng <dongsheng>
Wed, 19 Nov 2008 08:12:00 +0000 (08:12 +0000)
$CFG->enableajax == true, ajax chat will be enabled.

mod/chat/lib.php
mod/chat/view.php

index 56714c33e6c0c15b5bd480df35b5a7aea5015727..13bfd7e33cb6e58fd1a07f985a998e01f71e0bb1 100644 (file)
@@ -3,7 +3,6 @@
 /// Library of functions and constants for module chat
 require_once($CFG->libdir.'/pagelib.php');
 
-$CFG->chat_enable_ajax = false;
 $CFG->chat_ajax_debug  = false;
 $CFG->chat_use_cache   = false;
 
index 1fee2a3a45db68eaba3fef010ea8fb2deda33ad7..028c3b9b366be02300e8c9bc4aee7689664f321a 100644 (file)
                         "chat$course->id$chat->id$groupparam", "$strenterchat", 500, 700, get_string('modulename', 'chat'));
                 echo '</p>';
 
-                if ($CFG->chat_enable_ajax) {
+                if ($CFG->enableajax) {
                     echo '<p>';
                     link_to_popup_window ("/mod/chat/gui_ajax/index.php?id=$chat->id$groupparam",
                         "chat$course->id$chat->id$groupparam", get_string('ajax_gui', 'message'), 500, 700, get_string('modulename', 'chat'));