]> git.mjollnir.org Git - moodle.git/commitdiff
Fixes bug MDL-12416, Help links - img ALT text should contain phrase "new window...
authornfreear <nfreear>
Mon, 3 Dec 2007 16:41:36 +0000 (16:41 +0000)
committernfreear <nfreear>
Mon, 3 Dec 2007 16:41:36 +0000 (16:41 +0000)
lib/weblib.php

index 6d86c4ba9fbbebf03453212aa0763113d1a243f8..396cfd40d86d2aaf0c4eaef244bcb31630653726 100644 (file)
@@ -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 .'&amp;text='. s(urlencode($text).'&amp;forcelang='.$forcelang);