From a5fd49611b3e1eb93f8153cae0d21649182c29be Mon Sep 17 00:00:00 2001 From: toyomoyo Date: Thu, 30 Nov 2006 06:03:02 +0000 Subject: [PATCH] fix for MDL-7469, changed help icon alt to "helpwiththis" if text is displayed with help icon --- lib/weblib.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/weblib.php b/lib/weblib.php index 6e4bf816e5..ec0724c640 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -4555,8 +4555,7 @@ function helpbutton ($page, $title='', $module='moodle', $image=true, $linktext= $module = 'moodle'; } - - //Accessibility: prefix the alt text/title with 'Help with', strip distracting dots '...' + // Accessibility: prefix the alt text/title with 'Help with', strip distracting dots '...' // PLEASE DO NOT CHANGE. ('...' is VERY distracting for non-visual users) $tooltip = get_string('helpprefix2', '', trim($title, ". \t")); @@ -4564,16 +4563,16 @@ function helpbutton ($page, $title='', $module='moodle', $image=true, $linktext= if ($image) { if ($linktext) { + // MDL-7469 If text link is displayed with help icon, change to alt to "help with this". $linkobject .= $title.' '; + $tooltip = get_string('helpwiththis'); } - if ($imagetext) { $linkobject .= $imagetext; } else { $linkobject .= ''.$tooltip.''; } - } else { $linkobject .= $tooltip; } -- 2.39.5