From e09fc68ba7284443465ad8cafdd246c77a0a06b2 Mon Sep 17 00:00:00 2001 From: nicolasconnault Date: Thu, 6 Aug 2009 01:37:33 +0000 Subject: [PATCH] MDL-19804 Upgraded calls to print_headline --- mod/chat/lib.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mod/chat/lib.php b/mod/chat/lib.php index 2c7e44e4c9..926e432817 100644 --- a/mod/chat/lib.php +++ b/mod/chat/lib.php @@ -254,7 +254,7 @@ function chat_user_complete($course, $user, $mod, $chat) { * @return bool */ function chat_print_recent_activity($course, $viewfullnames, $timestart) { - global $CFG, $USER, $DB; + global $CFG, $USER, $DB, $OUTPUT; // this is approximate only, but it is really fast ;-) $timeout = $CFG->chat_old_ping * 10; @@ -334,7 +334,7 @@ function chat_print_recent_activity($course, $viewfullnames, $timestart) { $strftimerecent = get_string('strftimerecent'); if ($past) { - print_headline(get_string('pastchats', 'chat').':'); + echo $OUTPUT->heading(get_string("pastchats", 'chat').':'); foreach ($past as $cm) { $link = $CFG->wwwroot.'/mod/chat/view.php?id='.$cm->id; @@ -345,7 +345,7 @@ function chat_print_recent_activity($course, $viewfullnames, $timestart) { } if ($current) { - print_headline(get_string('currentchats', 'chat').':'); + echo $OUTPUT->heading(get_string("currentchats", 'chat').':'); $oldest = floor((time()-$CFG->chat_old_ping)/10)*10; // better db caching -- 2.39.5