//
// $CFG->emailconnectionerrorsto = 'your@emailaddress.com';
//
+// Restore pre-1.6 behaviour where courses could still be available
+// even if the category they were in was hidden
+// $CFG->allowvisiblecoursesinhiddencategories = true;
//
// NOTE: if you are using custompix in your theme, see /fixpix.php.
}
function course_parent_visible($course = null) {
+ if (empty($course)) {
+ return true;
+ }
+ if (!empty($CFG->allowvisiblecoursesinhiddencategories)) {
+ return true;
+ }
return category_parent_visible($course->category);
}