From 166db28057f27d74cebf4cdda9299a7b357904d8 Mon Sep 17 00:00:00 2001 From: nfreear Date: Mon, 3 Dec 2007 16:41:36 +0000 Subject: [PATCH] Fixes bug MDL-12416, Help links - img ALT text should contain phrase "new window" to match link TITLE. --- lib/weblib.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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); -- 2.39.5