From: nfreear Date: Tue, 25 Sep 2007 12:05:36 +0000 (+0000) Subject: MDL-1149 Accessibility: Current week/topic is NOT indicated non-visually, only in... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=f4a01ab61f8f5ac8f39cb121e9f46b5d964b2829;p=moodle.git MDL-1149 Accessibility: Current week/topic is NOT indicated non-visually, only in styling. --- diff --git a/course/format/lams/format.php b/course/format/lams/format.php index 4b1413c944..fddd972757 100644 --- a/course/format/lams/format.php +++ b/course/format/lams/format.php @@ -242,17 +242,19 @@ while ($section <= $course->numsections) { $currenttopic = ($course->marker == $section); + $currenttext = ''; if (!$thissection->visible) { $sectionstyle = ' hidden'; } else if ($currenttopic) { $sectionstyle = ' current'; + $currenttext = get_accesshide(get_string('currenttopic','access')); } else { $sectionstyle = ''; } echo ''; - echo ' '; + echo ' '.$currenttext.''; echo ''; if (!has_capability('moodle/course:viewhiddensections', $context) and !$thissection->visible) { // Hidden for students