From 654b0cab444b2a69f20c9a39d9d906ff128af263 Mon Sep 17 00:00:00 2001 From: dongsheng Date: Wed, 18 Jun 2008 03:13:40 +0000 Subject: [PATCH] "MDL-12304, fix double text" --- mod/chat/gui_header_js/jsupdate.php | 22 ++++++++++++++-------- mod/chat/gui_header_js/users.php | 2 +- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/mod/chat/gui_header_js/jsupdate.php b/mod/chat/gui_header_js/jsupdate.php index 7adef147c8e5c..aa776ad94ae8d 100644 --- a/mod/chat/gui_header_js/jsupdate.php +++ b/mod/chat/gui_header_js/jsupdate.php @@ -60,8 +60,8 @@ $chat_newrow = ($chat_lastrow + $num) % 2; // no & in url, does not work in header! - $refreshurl = "{$CFG->wwwroot}/mod/chat/gui_header_js/jsupdate.php?chat_sid=$chat_sid&chat_lasttime=$chat_newlasttime&chat_lastrow=$chat_newrow"; - $refreshurlamp = "{$CFG->wwwroot}/mod/chat/gui_header_js/jsupdate.php?chat_sid=$chat_sid&chat_lasttime=$chat_newlasttime&chat_lastrow=$chat_newrow"; + $refreshurl = "{$CFG->wwwroot}/mod/chat/gui_header_js/jsupdate.php?chat_sid=$chat_sid&chat_lasttime=$chat_newlasttime&chat_lastrow=$chat_newrow"; + $refreshurlamp = "{$CFG->wwwroot}/mod/chat/gui_header_js/jsupdate.php?chat_sid=$chat_sid&chat_lasttime=$chat_newlasttime&chat_lastrow=$chat_newrow"; header('Expires: Sun, 28 Dec 1997 09:32:45 GMT'); header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT'); @@ -88,7 +88,7 @@ @@ -153,7 +159,7 @@ // support HTTP Keep-Alive header("Content-Length: " . ob_get_length() ); -ob_end_flush(); +ob_end_flush(); exit; diff --git a/mod/chat/gui_header_js/users.php b/mod/chat/gui_header_js/users.php index 9a671f4de7a89..d648f3fd021e7 100644 --- a/mod/chat/gui_header_js/users.php +++ b/mod/chat/gui_header_js/users.php @@ -114,7 +114,7 @@ function update() { $strbeep = get_string('beep', 'chat'); - echo '
Refresh link
'; + echo '
Refresh link
'; echo ''; foreach ($chatusers as $chatuser) { $lastping = $timenow - $chatuser->lastmessageping;