mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +02:00
Fixes bug MDL-12416, Help links - img ALT text should contain phrase "new window" to match link TITLE.
This commit is contained in:
parent
2a58d3c22c
commit
166db28057
1 changed files with 2 additions and 3 deletions
|
@ -5819,7 +5819,8 @@ function helpbutton ($page, $title='', $module='moodle', $image=true, $linktext=
|
||||||
$module = 'moodle';
|
$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 = '';
|
$linkobject = '';
|
||||||
|
|
||||||
|
@ -5839,8 +5840,6 @@ function helpbutton ($page, $title='', $module='moodle', $image=true, $linktext=
|
||||||
$linkobject .= $tooltip;
|
$linkobject .= $tooltip;
|
||||||
}
|
}
|
||||||
|
|
||||||
$tooltip .= ' ('.get_string('newwindow').')'; // Warn users about new window for Accessibility
|
|
||||||
|
|
||||||
// fix for MDL-7734
|
// fix for MDL-7734
|
||||||
if ($text) {
|
if ($text) {
|
||||||
$url = '/help.php?module='. $module .'&text='. s(urlencode($text).'&forcelang='.$forcelang);
|
$url = '/help.php?module='. $module .'&text='. s(urlencode($text).'&forcelang='.$forcelang);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue