From 78e4f30a722ca4b09aa8e165ac488ea55f165b65 Mon Sep 17 00:00:00 2001 From: toyomoyo Date: Tue, 28 Nov 2006 02:22:17 +0000 Subject: [PATCH] fix for MDL-7436, indicate resource type in the text link. --- course/lib.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/course/lib.php b/course/lib.php index a23096959c..3bcfd8a2b7 100644 --- a/course/lib.php +++ b/course/lib.php @@ -1158,12 +1158,19 @@ function print_section($course, $section, $mods, $modnamesused, $absolute=false, } } else { // Normal activity + + if ($USER->screenreader) { + $typestring = '('.get_string('modulename',$mod->modname).') '; + } else { + $typestring = ''; + } + $linkcss = $mod->visible ? "" : " class=\"dimmed\" "; echo ''.$mod->modfullname.''. ' '. - $instancename.''; + $typestring.$instancename.''; } if ($usetracking && $mod->modname == 'forum') { $groupmode = groupmode($course, $mod); -- 2.39.5