course-report-progress MDL-19794 Fixed up deprecated calls
authorSam Hemelryk <sam@moodle.com>
Wed, 22 Sep 2010 08:52:02 +0000 (08:52 +0000)
committerSam Hemelryk <sam@moodle.com>
Wed, 22 Sep 2010 08:52:02 +0000 (08:52 +0000)
course/report/progress/index.php

index 122ea93..e18be6c 100644 (file)
@@ -98,11 +98,11 @@ $grandtotal = $completion->get_num_tracked_users('', array(), $group);
 
 // If no users in this course what-so-ever
 if (!$grandtotal) {
-    print_box_start('errorbox errorboxcontent boxaligncenter boxwidthnormal');
-    print '<p class="nousers">'.get_string('err_nousers','completion').'</p>';
-    print '<p><a href="'.$CFG->wwwroot.'/course/report.php?id='.$course->id.'">'.get_string('continue').'</a></p>';
-    print_box_end();
-    print_footer($course);
+    echo $OUTPUT->box_start('errorbox errorboxcontent boxaligncenter boxwidthnormal');
+    echo '<p class="nousers">'.get_string('err_nousers','completion').'</p>';
+    echo '<p><a href="'.$CFG->wwwroot.'/course/report.php?id='.$course->id.'">'.get_string('continue').'</a></p>';
+    echo $OUTPUT->box_end();
+    echo $OUTPUT->footer();
     exit;
 }
 
@@ -239,8 +239,8 @@ if(!$csv) {
     print $pagingbar;
 
     if (!$total) {
-        print_heading(get_string('nothingtodisplay'));
-        print_footer($course);
+        echo $OUTPUT->heading(get_string('nothingtodisplay'));
+        echo $OUTPUT->footer();
         exit;
     }