diff --git a/admin/report/backups/index.php b/admin/report/backups/index.php index a8a4925dee1..4591676982a 100644 --- a/admin/report/backups/index.php +++ b/admin/report/backups/index.php @@ -15,7 +15,7 @@ /// Scheduled backups are disabled by the server admin if (!empty($CFG->disablescheduledbackups)) { - print_error('scheduledbackupsdisabled', '', '', NULL, true); + print_error('scheduledbackupsdisabled', 'error'); } /// Scheduled backups aren't active by the site admin diff --git a/admin/report/courseoverview/index.php b/admin/report/courseoverview/index.php index b4651036c49..7bbd95c4911 100644 --- a/admin/report/courseoverview/index.php +++ b/admin/report/courseoverview/index.php @@ -43,7 +43,7 @@ $timeoptions = stats_get_time_options($now,$lastweekend,$lastmonthend,$earliestday,$earliestweek,$earliestmonth); if (empty($timeoptions)) { - error(get_string('nostatstodisplay'), $CFG->wwwroot.'/course/view.php?id='.$course->id); + print_error('nostatstodisplay', 'error', $CFG->wwwroot.'/course/view.php?id='.$course->id); } echo '