From: nicolasconnault Date: Thu, 6 Aug 2009 01:36:33 +0000 (+0000) Subject: MDL-19808 Upgraded calls to print_headline X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=cb860491717ba98792a49fa661fff034b108899a;p=moodle.git MDL-19808 Upgraded calls to print_headline --- diff --git a/mod/forum/lib.php b/mod/forum/lib.php index e9aa0c9d1e..4160c465cc 100644 --- a/mod/forum/lib.php +++ b/mod/forum/lib.php @@ -1301,7 +1301,7 @@ function forum_print_overview($courses,&$htmlarray) { * @return bool success */ function forum_print_recent_activity($course, $viewfullnames, $timestart) { - global $CFG, $USER, $DB; + global $CFG, $USER, $DB, $OUTPUT; // do not use log table if possible, it may be huge and is expensive to join with other tables @@ -1377,7 +1377,7 @@ function forum_print_recent_activity($course, $viewfullnames, $timestart) { return false; } - print_headline(get_string('newforumposts', 'forum').':', 3); + echo $OUTPUT->heading(get_string('newforumposts', 'forum').':', 3); echo "\n