diff --git a/lib/weblib.php b/lib/weblib.php index 6d86c4ba9fb..396cfd40d86 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);