]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-1149 Accessibility: Current week/topic is NOT indicated non-visually, only in...
authornfreear <nfreear>
Tue, 25 Sep 2007 12:05:36 +0000 (12:05 +0000)
committernfreear <nfreear>
Tue, 25 Sep 2007 12:05:36 +0000 (12:05 +0000)
course/format/lams/format.php

index 4b1413c944bca047c24d9a5796ba279acd6d3b11..fddd972757d39f5b855344f71f419e1bc37356c8 100644 (file)
@@ -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 '<tr id="section-'.$section.'" class="section main'.$sectionstyle.'">';
 
-        echo '<td class="left side">&nbsp;</td>';
+        echo '<td class="left side">&nbsp;'.$currenttext.'</td>';
 
         echo '<td class="content">';
         if (!has_capability('moodle/course:viewhiddensections', $context) and !$thissection->visible) {   // Hidden for students