MDL-35077 do not show link to system stats report if stats disabled

This commit is contained in:
Petr Škoda
2012-09-05 10:02:07 +02:00
parent 0a898cbc46
commit e4e29fd35e
+1 -1
View File
@@ -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;