Skip to content

Commit

Permalink
Merge branch 'MDL-35336_m24' of git://github.com/rwijaya/moodle into …
Browse files Browse the repository at this point in the history
…MOODLE_24_STABLE
  • Loading branch information
danpoltawski committed Feb 18, 2013
2 parents a2f6f88 + 2102aee commit 047f7aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion report/courseoverview/index.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@


if (empty($CFG->enablestats)) { if (empty($CFG->enablestats)) {
if (has_capability('moodle/site:config', context_system::instance())) { 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 { } else {
print_error('statsdisable'); print_error('statsdisable');
} }
Expand Down
2 changes: 1 addition & 1 deletion report/courseoverview/settings.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@


defined('MOODLE_INTERNAL') || die; 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 // no report settings
$settings = null; $settings = null;

0 comments on commit 047f7aa

Please sign in to comment.