Permalink
Browse files

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

…MOODLE_24_STABLE
  • Loading branch information...
2 parents a2f6f88 + 2102aee commit 047f7aa46c7db8b40e09fe97a923858931085dfc @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
@@ -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');
}
@@ -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 047f7aa

Please sign in to comment.