From 97d5076b15ee94ef0357f918ed8aca45c27c97c0 Mon Sep 17 00:00:00 2001
From: dongsheng
Date: Wed, 19 Nov 2008 08:12:00 +0000
Subject: [PATCH] CHAT_MOD/MDL-14651 $CFG->enableajax == true, ajax chat will
be enabled.
---
mod/chat/lib.php | 1 -
mod/chat/view.php | 2 +-
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/mod/chat/lib.php b/mod/chat/lib.php
index 56714c33e6..13bfd7e33c 100644
--- a/mod/chat/lib.php
+++ b/mod/chat/lib.php
@@ -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;
diff --git a/mod/chat/view.php b/mod/chat/view.php
index 1fee2a3a45..028c3b9b36 100644
--- a/mod/chat/view.php
+++ b/mod/chat/view.php
@@ -147,7 +147,7 @@
"chat$course->id$chat->id$groupparam", "$strenterchat", 500, 700, get_string('modulename', 'chat'));
echo '
';
- if ($CFG->chat_enable_ajax) {
+ if ($CFG->enableajax) {
echo '';
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'));
--
2.39.5