From 1a6f777a813f8c4b06e7a88d25bc8ef1b7fa094f Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sun, 15 Feb 2009 10:15:29 +0000 Subject: [PATCH] show all help messages as tooltip --- lam/lib/modules.inc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lam/lib/modules.inc b/lam/lib/modules.inc index 7122e763..e1be5fef 100644 --- a/lam/lib/modules.inc +++ b/lam/lib/modules.inc @@ -889,10 +889,8 @@ function printHelpLink($entry, $number, $module='', $scope='') { if (is_file("./help.php")) $helpPath = ""; $title = $entry['Headline']; $message = $entry['Text']; - // if help message contains special characters then point to help page - if (!(strpos($message, '"') === false) || !(strpos($message, "'") === false) || !(strpos($message, "\n") === false)) { - $message = _('Please click on the icon to view the help page.'); - } + // replace special characters + $message = str_replace(array("'", '"', "\n"), array("\\'", '"', ''), $message); echo "";