From: nicolasconnault Date: Thu, 6 Aug 2009 01:36:45 +0000 (+0000) Subject: MDL-19816 Upgraded calls to print_headline X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=11e0676ae7a5a17b79facd816ad7dd10890a3fa4;p=moodle.git MDL-19816 Upgraded calls to print_headline --- diff --git a/mod/survey/lib.php b/mod/survey/lib.php index f5ab7c3621..f400c23e8c 100644 --- a/mod/survey/lib.php +++ b/mod/survey/lib.php @@ -212,7 +212,7 @@ function survey_user_complete($course, $user, $mod, $survey) { * @return bool */ function survey_print_recent_activity($course, $viewfullnames, $timestart) { - global $CFG, $DB; + global $CFG, $DB, $OUTPUT; $modinfo = get_fast_modinfo($course); $ids = array(); @@ -256,7 +256,7 @@ function survey_print_recent_activity($course, $viewfullnames, $timestart) { return false; } - print_headline(get_string('newsurveyresponses', 'survey').':'); + echo $OUTPUT->heading(get_string('newsurveyresponses', 'survey').':'); foreach ($surveys as $survey) { $url = $CFG->wwwroot.'/mod/survey/view.php?id='.$survey->cmid; print_recent_activity_note($survey->time, $survey, $survey->name, $url, false, $viewfullnames);