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

index e9aa0c9d1eb4ddd829a8874157335e8595bd4844..4160c465cc98da0c3f37bebdd742473d3b381050 100644 (file)
@@ -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<ul class='unlist'>\n";
 
     foreach ($printposts as $post) {