From 0b5a4199d05201a7490cb9dffaf27bf72dcd8e60 Mon Sep 17 00:00:00 2001 From: nfreear Date: Mon, 3 Dec 2007 16:47:23 +0000 Subject: [PATCH] Fixes bug MDL-12416, Help links - img ALT text should contain phrase "new window" to match link TITLE. Merged. --- lib/weblib.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/weblib.php b/lib/weblib.php index 7d830c27338..2c0c85a35b0 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -4996,7 +4996,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 = ''; @@ -5016,8 +5017,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);