Skip to content

Commit

Permalink
MDL-19816 Converted print_box* to $OUTPUT->box*
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasconnault committed Aug 10, 2009
1 parent 3b1d5cc commit 8411d0a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions mod/survey/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 "<div class=\"reportlink\"><a href=\"report.php?id=$cm->id\">".
Expand Down Expand Up @@ -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)) . '<br />';
Expand Down Expand Up @@ -154,7 +154,7 @@
}

if (isguest()) {
echo '</div>';
echo '</div>';
echo "</form>";
echo $OUTPUT->footer();
exit;
Expand Down

0 comments on commit 8411d0a

Please sign in to comment.