Browse files

Merge branch 'MDL-35336_m23' of git://github.com/rwijaya/moodle into …

…MOODLE_23_STABLE
  • Loading branch information...
2 parents e4594f7 + 9f2be81 commit 45c8baafd0041bc39ba917221e3265f076a36cba @danpoltawski danpoltawski committed Feb 18, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 report/courseoverview/index.php
  2. +1 −1 report/courseoverview/settings.php
View
2 report/courseoverview/index.php
@@ -33,7 +33,7 @@
if (empty($CFG->enablestats)) {
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/search.php?query=enablestats", get_string('mustenablestats', 'admin'), 3);
} else {
print_error('statsdisable');
}
View
2 report/courseoverview/settings.php
@@ -25,7 +25,7 @@
defined('MOODLE_INTERNAL') || die;
-$ADMIN->add('reports', new admin_externalpage('reportcourseoverview', get_string('pluginname', 'report_courseoverview'), "$CFG->wwwroot/report/courseoverview/index.php",'report/courseoverview:view'));
+$ADMIN->add('reports', new admin_externalpage('reportcourseoverview', get_string('pluginname', 'report_courseoverview'), "$CFG->wwwroot/report/courseoverview/index.php",'report/courseoverview:view', empty($CFG->enablestats)));
// no report settings
$settings = null;

0 comments on commit 45c8baa

Please sign in to comment.