MDL-35077 do not show link to system stats report if stats disabled
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user