Skip to content

Commit

Permalink
MDL-39050 quiz access rules: $module->is_enabled() not available for 23
Browse files Browse the repository at this point in the history
  • Loading branch information
Damyon Wiese committed Apr 22, 2013
1 parent cf473c2 commit 42f64a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/quiz/settings.php
Expand Up @@ -236,7 +236,7 @@
// Add settings pages for the quiz access rule subplugins. // Add settings pages for the quiz access rule subplugins.
foreach ($rulesbyname as $strrulename => $rule) { foreach ($rulesbyname as $strrulename => $rule) {
$settings = new admin_settingpage('modsettingsquizcat' . $rule, $settings = new admin_settingpage('modsettingsquizcat' . $rule,
$strrulename, 'moodle/site:config', $module->is_enabled() === false); $strrulename, 'moodle/site:config', !$module->visible);
if ($ADMIN->fulltree) { if ($ADMIN->fulltree) {
include($CFG->dirroot . "/mod/quiz/accessrule/$rule/settings.php"); include($CFG->dirroot . "/mod/quiz/accessrule/$rule/settings.php");
} }
Expand Down

0 comments on commit 42f64a0

Please sign in to comment.