Skip to content

Commit

Permalink
MDL-35336 report (course overview): check the setting for enablestats…
Browse files Browse the repository at this point in the history
… before printing out the node for setting > site admin > reports
  • Loading branch information
Rossiani Wijaya committed Feb 18, 2013
1 parent 2975c34 commit 17b57ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion report/courseoverview/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

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
$settings = null;

0 comments on commit 17b57ec

Please sign in to comment.