From: nfreear Date: Mon, 3 Dec 2007 16:41:36 +0000 (+0000) Subject: Fixes bug MDL-12416, Help links - img ALT text should contain phrase "new window... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=166db28057f27d74cebf4cdda9299a7b357904d8;p=moodle.git Fixes bug MDL-12416, Help links - img ALT text should contain phrase "new window" to match link TITLE. --- diff --git a/lib/weblib.php b/lib/weblib.php index 6d86c4ba9f..396cfd40d8 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -5819,7 +5819,8 @@ function helpbutton ($page, $title='', $module='moodle', $image=true, $linktext= $module = 'moodle'; } - $tooltip = get_string('helpprefix2', '', trim($title, ". \t")); + // Warn users about new window for Accessibility + $tooltip = get_string('helpprefix2', '', trim($title, ". \t")) .' ('.get_string('newwindow').')'; $linkobject = ''; @@ -5839,8 +5840,6 @@ function helpbutton ($page, $title='', $module='moodle', $image=true, $linktext= $linkobject .= $tooltip; } - $tooltip .= ' ('.get_string('newwindow').')'; // Warn users about new window for Accessibility - // fix for MDL-7734 if ($text) { $url = '/help.php?module='. $module .'&text='. s(urlencode($text).'&forcelang='.$forcelang);