]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-19804 Upgraded calls to print_headline
authornicolasconnault <nicolasconnault>
Thu, 6 Aug 2009 01:37:33 +0000 (01:37 +0000)
committernicolasconnault <nicolasconnault>
Thu, 6 Aug 2009 01:37:33 +0000 (01:37 +0000)
mod/chat/lib.php

index 2c7e44e4c9c78aeb126558bf8ad5302fe998dbe2..926e4328177a577c799954ba02a178b22a36a43b 100644 (file)
@@ -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