MDL-13526 fixed site stats report language; merged from MOODLE_19_STABLE

This commit is contained in:
skodak 2008-02-23 12:10:27 +00:00
parent cdcd72838b
commit ffa36c6b74

View File

@ -47,7 +47,7 @@
redirect("$CFG->wwwroot/$CFG->admin/settings.php?section=stats", get_string('mustenablestats', 'admin'), 3);
}
require_capability('moodle/site:viewreports', get_context_instance(CONTEXT_COURSE, $course->id));
require_capability('moodle/site:viewreports', get_context_instance(CONTEXT_SYSTEM));
add_to_log($course->id, "course", "report stats", "report/stats/index.php?course=$course->id", $course->id);