From: nicolasconnault Date: Mon, 10 Aug 2009 05:00:53 +0000 (+0000) Subject: MDL-19816 Converted print_box* to $OUTPUT->box* X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=8411d0aa044082153501cd1ed8645c78f5f24cd6;p=moodle.git MDL-19816 Converted print_box* to $OUTPUT->box* --- 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;