From: ikawhero Date: Fri, 10 Mar 2006 08:57:22 +0000 (+0000) Subject: Tidying up some accessibility changes X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=9f6986264049d7158672dbd71d560618f4e8b44f;p=moodle.git Tidying up some accessibility changes --- diff --git a/lib/weblib.php b/lib/weblib.php index b3334d1c4a..d453652aee 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -3966,10 +3966,10 @@ function helpbutton ($page, $title='', $module='moodle', $image=true, $linktext= $linkobject = ''; //Accessibility: prefix the alt text/title with 'Help with', strip distracting dots '...' - $title = get_string('helpprefix', '', trim($title,' \t.')); + $tooltip = get_string('helpprefix', '', trim($title,' \t.')); if ($image) { if ($imagetext == '') { - $imagetext = ''.$title.''; } if ($linktext) { @@ -3979,7 +3979,7 @@ function helpbutton ($page, $title='', $module='moodle', $image=true, $linktext= $linkobject .= $imagetext; } else { - $linkobject .= $title; + $linkobject .= $tooltip; } $linkobject .= ''; @@ -3990,7 +3990,7 @@ function helpbutton ($page, $title='', $module='moodle', $image=true, $linktext= $url = '/help.php?module='. $module .'&file='. $page .'.html'; } - $link = link_to_popup_window ($url, 'popup', $linkobject, 400, 500, $title, 'none', true); + $link = link_to_popup_window ($url, 'popup', $linkobject, 400, 500, $tooltip, 'none', true); if ($return) { return $link;