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

index b324216548d1f9947b0e1912412bdabb20cb8674..fe76348ab4d8313b693489c9d93cbfeb32c6f7cc 100644 (file)
@@ -296,7 +296,7 @@ function glossary_user_complete($course, $user, $mod, $glossary) {
  * @return bool
  */
 function glossary_print_recent_activity($course, $viewfullnames, $timestart) {
-    global $CFG, $USER, $DB;
+    global $CFG, $USER, $DB, $OUTPUT;
 
     //TODO: use timestamp in approved field instead of changing timemodified when approving in 2.0
 
@@ -346,7 +346,7 @@ function glossary_print_recent_activity($course, $viewfullnames, $timestart) {
     if (!$entries) {
         return false;
     }
-    print_headline(get_string('newentries', 'glossary').':');
+    echo $OUTPUT->heading(get_string('newentries', 'glossary').':');
 
     $strftimerecent = get_string('strftimerecent');
     foreach ($entries as $entry) {