]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-19799 Converted print_box* to $OUTPUT->box*
authornicolasconnault <nicolasconnault>
Mon, 10 Aug 2009 05:50:28 +0000 (05:50 +0000)
committernicolasconnault <nicolasconnault>
Mon, 10 Aug 2009 05:50:28 +0000 (05:50 +0000)
my/index.php
notes/index.php

index a60f6a17ccb9121709f670801bed872ef80c6ffe..628f9b99f9a88c5f980d294e5197a01260fb71f8 100644 (file)
     }
 
     if (empty($courses)) {
-        print_box(get_string('nocourses','my'));
+        echo $OUTPUT->box(get_string('nocourses','my'));
     } else {
         print_overview($courses);
     }
 
     // if more than 20 courses
     if (count($courses) > 20) {
-        echo '<br />...';  
+        echo '<br />...';
     }
 
     echo $OUTPUT->footer();
index 653e819e96f1652e9e420ebcdd60cd019a680a52..88f19dbff9560772954d22d63bf5c8f59b465ca2 100644 (file)
@@ -65,7 +65,7 @@
         $coursecontext = get_context_instance(CONTEXT_COURSE, $course->id);   // Course context
     }
     $systemcontext = get_context_instance(CONTEXT_SYSTEM);   // SYSTEM context
-    
+
     $strnotes = get_string('notes', 'notes');
     $nav = array();
     if (has_capability('moodle/course:viewparticipants', $coursecontext) || has_capability('moodle/site:viewparticipants', $systemcontext)) {
@@ -87,7 +87,7 @@
     $strpersonalnotes = get_string('personalnotes', 'notes');
     $straddnewnote = get_string('addnewnote', 'notes');
 
-    print_box_start();
+    echo $OUTPUT->box_start();
 
     if ($courseid != SITEID) {
         //echo '<a href="#sitenotes">' . $strsitenotes . '</a> | <a href="#coursenotes">' . $strcoursenotes . '</a> | <a href="#personalnotes">' . $strpersonalnotes . '</a>';
         }
     }
 
-    print_box_end();
+    echo $OUTPUT->box_end();
 
     echo $OUTPUT->footer();
 ?>