From: nfreear Date: Mon, 24 Sep 2007 17:26:40 +0000 (+0000) Subject: Partial fix of reopened MDL-7436 Accessibility: "Indicate type of resource in the... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=e0b033d5f81977b12bccb651d2c05a69ae450d83;p=moodle.git Partial fix of reopened MDL-7436 Accessibility: "Indicate type of resource in the name of the resource" --- diff --git a/course/lib.php b/course/lib.php index 9ea5061781..3ad961bc10 100644 --- a/course/lib.php +++ b/course/lib.php @@ -1397,19 +1397,13 @@ function print_section($course, $section, $mods, $modnamesused, $absolute=false, } } else { // Normal activity - - if (!empty($USER->screenreader)) { - $typestring = '('.get_string('modulename',$mod->modname).') '; - } else { - $typestring = ''; - } - + $linkcss = $mod->visible ? "" : " class=\"dimmed\" "; - echo ''.$mod->modfullname.''. - ' '. - $typestring.$instancename.''; + ''.$mod->modfullname.' '. + $instancename.''; } if ($usetracking && $mod->modname == 'forum') { $groupmode = groups_get_course_groupmode($course, $mod); @@ -1752,6 +1746,7 @@ function print_category_info($category, $depth, $files = false) { } + function print_courses($category) { /// Category is 0 (for all courses) or an object @@ -2889,4 +2884,4 @@ function update_course($data) { return false; } -?> +?> \ No newline at end of file