Skip to content

Commit

Permalink
CHAT_MOD/MDL-14651
Browse files Browse the repository at this point in the history
$CFG->enableajax == true, ajax chat will be enabled.
  • Loading branch information
dongsheng committed Nov 19, 2008
1 parent 4faec37 commit 97d5076
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion mod/chat/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion mod/chat/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
"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'));
Expand Down

0 comments on commit 97d5076

Please sign in to comment.