MDL-19805 Converted print_box* to $OUTPUT->box*
authornicolasconnault <nicolasconnault>
Mon, 10 Aug 2009 04:58:52 +0000 (04:58 +0000)
committernicolasconnault <nicolasconnault>
Mon, 10 Aug 2009 04:58:52 +0000 (04:58 +0000)
mod/choice/view.php

index e97dfbb38168899bef9063531200e2f7f4167c9f..523e7af6b9bc05d8b3407914e3d2fa55627ba460 100644 (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