Bug 1837
(http://moodle.org/bugs/bug.php?op=show&bugid=1837)
Merged from MOODLE_14_STABLE
require_course_login($course);
+ if (!$cm->visible and !isteacher($course->id)) {
+ notice(get_string("activityiscurrentlyhidden"));
+ }
+
/// setting the default values for the display mode of the current glossary
/// only if the glossary is viewed by the first time
if ( $dp = get_record('glossary_formats','name', $glossary->displayformat) ) {
require_login($course->id);
}
if (!$cm->visible and !isteacher($course->id)) {
+ print_header();
notice(get_string("activityiscurrentlyhidden"));
}
add_to_log($course->id, "glossary", "view", "view.php?id=$cm->id&tab=$tab", $glossary->id, $cm->id);