fixing missing bracket

This commit is contained in:
toyomoyo 2006-09-14 06:43:01 +00:00
parent 89d57596bd
commit c5a3467aa0

View File

@ -106,7 +106,7 @@
// warning: it may break backwards compatibility
if ((!empty($CFG->preventaccesstohiddenfiles))
and (count($args) >= 2)
and (!has_capability('moodle/course:viewhiddenactivities', get_context_instance(CONTEXT_COURSE, $course->id))) {
and (!has_capability('moodle/course:viewhiddenactivities', get_context_instance(CONTEXT_COURSE, $course->id)))) {
$reference = ltrim($relativepath, "/{$args[0]}/");