MDL-39050 quiz access rules: $module->is_enabled() not available for 23
authorDamyon Wiese <damyon@moodle.com>
Mon, 22 Apr 2013 02:36:20 +0000 (10:36 +0800)
committerDamyon Wiese <damyon@moodle.com>
Mon, 22 Apr 2013 02:37:44 +0000 (10:37 +0800)
mod/quiz/settings.php

index a91049d..6ebd84b 100644 (file)
@@ -236,7 +236,7 @@ if (empty($reportsbyname) && empty($rulesbyname)) {
     // Add settings pages for the quiz access rule subplugins.
     foreach ($rulesbyname as $strrulename => $rule) {
         $settings = new admin_settingpage('modsettingsquizcat' . $rule,
-                $strrulename, 'moodle/site:config', $module->is_enabled() === false);
+                $strrulename, 'moodle/site:config', !$module->visible);
         if ($ADMIN->fulltree) {
             include($CFG->dirroot . "/mod/quiz/accessrule/$rule/settings.php");
         }