]> git.mjollnir.org Git - moodle.git/commitdiff
Accessibility: do NOT change, fixed call to trim in function, helpbutton (OU-Bugz...
authornfreear <nfreear>
Thu, 16 Mar 2006 11:13:21 +0000 (11:13 +0000)
committernfreear <nfreear>
Thu, 16 Mar 2006 11:13:21 +0000 (11:13 +0000)
lib/weblib.php

index ada6f82e58f00a0cc9563c774d29c3973a3ead4e..bf36dd9f6975d997c54f88755015a130ee368695 100644 (file)
@@ -4045,8 +4045,9 @@ function helpbutton ($page, $title='', $module='moodle', $image=true, $linktext=
 
     $linkobject = '<span class="helplink">';
 
-    //Accessibility: prefix the alt text/title with 'Help:'
-    $tooltip = get_string('helpprefix', '', trim($title));
+    //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('helpprefix', '', trim($title, ". \t"));
     
     if ($image) {
         if ($imagetext == '') {