Skip to content

Commit

Permalink
MDL-19805 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 c15fa88 commit c57b95f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mod/choice/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
if ($form = data_submitted() && has_capability('mod/choice:choose', $context)) {
$timenow = time();
if (has_capability('mod/choice:deleteresponses', $context)) {
if ($action == 'delete') { //some responses need to be deleted
if ($action == 'delete') { //some responses need to be deleted
choice_delete_responses($attemptids, $choice->id); //delete responses.
redirect("view.php?id=$cm->id");
}
Expand Down Expand Up @@ -80,7 +80,7 @@
echo '<div class="clearer"></div>';

if ($choice->intro) {
print_box(format_module_intro('choice', $choice, $cm->id), 'generalbox', 'intro');
echo $OUTPUT->box(format_module_intro('choice', $choice, $cm->id), 'generalbox', 'intro');
}

$current = false; // Initialise for later
Expand Down

0 comments on commit c57b95f

Please sign in to comment.