* @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;
$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;
}
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