Skip to content

Commit

Permalink
Merge branch 'MDL-25639' of git://git.luns.net.uk/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Hemelryk committed Feb 7, 2011
2 parents 1ca95a1 + 6110e00 commit 449adac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions admin/report/courseoverview/index.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
$time = optional_param('time', 0, PARAM_INT); $time = optional_param('time', 0, PARAM_INT);
$numcourses = optional_param('numcourses', 20, PARAM_INT); $numcourses = optional_param('numcourses', 20, PARAM_INT);


admin_externalpage_setup('reportcourseoverview');
echo $OUTPUT->header();

if (empty($CFG->enablestats)) { if (empty($CFG->enablestats)) {
if (has_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM))) { if (has_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM))) {
redirect("$CFG->wwwroot/$CFG->admin/settings.php?section=stats", get_string('mustenablestats', 'admin'), 3); redirect("$CFG->wwwroot/$CFG->admin/settings.php?section=stats", get_string('mustenablestats', 'admin'), 3);
Expand All @@ -19,6 +16,9 @@
} }
} }


admin_externalpage_setup('reportcourseoverview');
echo $OUTPUT->header();

$course = get_site(); $course = get_site();
stats_check_uptodate($course->id); stats_check_uptodate($course->id);


Expand Down

0 comments on commit 449adac

Please sign in to comment.