From 8411d0aa044082153501cd1ed8645c78f5f24cd6 Mon Sep 17 00:00:00 2001 From: nicolasconnault Date: Mon, 10 Aug 2009 05:00:53 +0000 Subject: [PATCH] MDL-19816 Converted print_box* to $OUTPUT->box* --- mod/survey/view.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mod/survey/view.php b/mod/survey/view.php index 0a04d90c7b..907e06f9ba 100644 --- a/mod/survey/view.php +++ b/mod/survey/view.php @@ -45,11 +45,11 @@ $currentgroup = 0; } $groupingid = $cm->groupingid; - - if (has_capability('mod/survey:readresponses', $context) or ($groupmode == VISIBLEGROUPS)) { + + if (has_capability('mod/survey:readresponses', $context) or ($groupmode == VISIBLEGROUPS)) { $currentgroup = 0; } - + if (has_capability('mod/survey:readresponses', $context)) { $numusers = survey_count_responses($survey->id, $currentgroup, $groupingid); echo "
id\">". @@ -79,7 +79,7 @@ } else { - print_box(format_module_intro('survey', $survey, $cm->id), 'generalbox', 'intro'); + echo $OUTPUT->box(format_module_intro('survey', $survey, $cm->id), 'generalbox', 'intro'); $spacer = new html_image(); $spacer->height = 30; echo $OUTPUT->spacer(clone($spacer)) . '
'; @@ -154,7 +154,7 @@ } if (isguest()) { - echo '
'; + echo ''; echo ""; echo $OUTPUT->footer(); exit; -- 2.39.5