From: nicolasconnault <nicolasconnault>
Date: Thu, 6 Aug 2009 01:37:33 +0000 (+0000)
Subject: MDL-19804 Upgraded calls to print_headline
X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=e09fc68ba7284443465ad8cafdd246c77a0a06b2;p=moodle.git

MDL-19804 Upgraded calls to print_headline
---

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