From c0549ef58a30b74e2c12c74ce1f2907f7f111aef Mon Sep 17 00:00:00 2001 From: samhemelryk Date: Mon, 7 Sep 2009 07:28:49 +0000 Subject: [PATCH] survey MDL-19816 Updated print_header and build_navigation to OUTPUT and PAGE equivalents --- mod/survey/report.php | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/mod/survey/report.php b/mod/survey/report.php index 64bfc95576..528c830138 100644 --- a/mod/survey/report.php +++ b/mod/survey/report.php @@ -56,19 +56,12 @@ add_to_log($course->id, "survey", "view report", "report.php?id=$cm->id", "$survey->id", $cm->id); - if ($course->id != SITEID) { - $navigation = "id\">$course->shortname -> - id\">$strsurveys -> - id\">".format_string($survey->name,true)." -> "; - } else { - $navigation = "id\">$strsurveys -> - id\">".format_string($survey->name,true)." -> "; - } - - $navigation = build_navigation($strreport, $cm); - print_header("$course->shortname: ".format_string($survey->name), $course->fullname, $navigation, - "", "", true, - update_module_button($cm->id, $course->id, $strsurvey), navmenu($course, $cm)); + $PAGE->navbar->add($strreport); + + $PAGE->set_title("$course->shortname: ".format_string($survey->name)); + $PAGE->set_heading($course->fullname); + $PAGE->set_button(update_module_button($cm->id, $course->id, $strsurvey)); + echo $OUTPUT->header(); /// Check to see if groups are being used in this survey if ($groupmode = groups_get_activity_groupmode($cm)) { // Groups are being used -- 2.39.5