Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit 9a9d65a7338eabf335818b30a77d8aab8affed71 1 parent b06c820
Petr Skoda skodak authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  report/stats/settings.php
2  report/stats/settings.php
@@ -26,7 +26,7 @@
26 26 defined('MOODLE_INTERNAL') || die;
27 27
28 28 // just a link to course report
29   -$ADMIN->add('reports', new admin_externalpage('reportstats', get_string('pluginname', 'report_stats'), "$CFG->wwwroot/report/stats/index.php", 'report/stats:view'));
  29 +$ADMIN->add('reports', new admin_externalpage('reportstats', get_string('pluginname', 'report_stats'), "$CFG->wwwroot/report/stats/index.php", 'report/stats:view', empty($CFG->enablestats)));
30 30
31 31 // no report settings
32 32 $settings = null;

0 comments on commit 9a9d65a

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