MDL-19805 Converted print_box* to $OUTPUT->box*

This commit is contained in:
nicolasconnault
2009-08-10 04:58:52 +00:00
parent c15fa88fb8
commit c57b95f7a0
+2 -2
View File
@@ -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");
}
@@ -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