From eab1f9aebdd801784550f4767726c26a19360f50 Mon Sep 17 00:00:00 2001 From: nfreear Date: Thu, 16 Mar 2006 11:13:21 +0000 Subject: [PATCH] Accessibility: do NOT change, fixed call to trim in function, helpbutton (OU-Bugz: 752) --- lib/weblib.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/weblib.php b/lib/weblib.php index ada6f82e58..bf36dd9f69 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -4045,8 +4045,9 @@ function helpbutton ($page, $title='', $module='moodle', $image=true, $linktext= $linkobject = ''; - //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 == '') { -- 2.39.5