Skip to content

Commit

Permalink
MDL-35077 do not show link to system stats report if stats disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Sep 5, 2012
1 parent 0a898cb commit e4e29fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion report/stats/settings.php
Expand Up @@ -26,7 +26,7 @@
defined('MOODLE_INTERNAL') || die;

// just a link to course report
$ADMIN->add('reports', new admin_externalpage('reportstats', get_string('pluginname', 'report_stats'), "$CFG->wwwroot/report/stats/index.php", 'report/stats:view'));
$ADMIN->add('reports', new admin_externalpage('reportstats', get_string('pluginname', 'report_stats'), "$CFG->wwwroot/report/stats/index.php", 'report/stats:view', empty($CFG->enablestats)));

// no report settings
$settings = null;

0 comments on commit e4e29fd

Please sign in to comment.