Skip to content

Commit

Permalink
MDL-35336 Report (course overview): fixed redirect url to enable stat…
Browse files Browse the repository at this point in the history
…istics setting page when statistics is disable
  • Loading branch information
Rossiani Wijaya committed Feb 18, 2013
1 parent 1dd6835 commit 2975c34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion report/courseoverview/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

if (empty($CFG->enablestats)) {
if (has_capability('moodle/site:config', context_system::instance())) {
redirect("$CFG->wwwroot/$CFG->admin/settings.php?section=stats", get_string('mustenablestats', 'admin'), 3);
redirect("$CFG->wwwroot/$CFG->admin/search.php?query=enablestats", get_string('mustenablestats', 'admin'), 3);
} else {
print_error('statsdisable');
}
Expand Down

0 comments on commit 2975c34

Please sign in to comment.