From a6320cc0b88f1fc2238f943d7cd580d14e2ebb97 Mon Sep 17 00:00:00 2001 From: moodler Date: Sun, 18 Jun 2006 08:10:52 +0000 Subject: [PATCH] Merged helplink fix from stable --- lib/weblib.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/weblib.php b/lib/weblib.php index 6dadc56f50..9fc171dad8 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -4142,12 +4142,13 @@ function helpbutton ($page, $title='', $module='moodle', $image=true, $linktext= $module = 'moodle'; } - $linkobject = ''; //Accessibility: prefix the alt text/title with 'Help with', strip distracting dots '...' // PLEASE DO NOT CHANGE. ('...' is VERY distracting for non-visual users) $tooltip = get_string('helpprefix', '', trim($title, ". \t")); + $linkobject = ''; + if ($image) { if ($imagetext == '') { $imagetext = ''.$tooltip.''. + link_to_popup_window ($url, 'popup', $linkobject, 400, 500, $tooltip, 'none', true). + ''; if ($return) { return $link; -- 2.39.5