Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…MOODLE_24_STABLE
  • Loading branch information...
commit 047f7aa46c7db8b40e09fe97a923858931085dfc 2 parents a2f6f88 + 2102aee
@danpoltawski danpoltawski authored
View
2  report/courseoverview/index.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');
}
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 047f7aa

Please sign in to comment.
Something went wrong with that request. Please try again.