From f516106e4a8d39c57007b4d0b088973bb447dda8 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Tue, 5 Apr 2005 12:04:37 +0000 Subject: [PATCH] fixed help links in parseHTML() if called from templates/ --- lam/lib/modules.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lam/lib/modules.inc b/lam/lib/modules.inc index 41aa847b..b24f0bb2 100644 --- a/lam/lib/modules.inc +++ b/lam/lib/modules.inc @@ -646,7 +646,9 @@ function parseHtml($module, $input, $values, $restricted, &$tabindex, &$tabindex break; // help link case 'help': - echo "" . _('Help') . "\n"; + $helpPath = "../"; + if (is_file("./help.php")) $helpPath = "./"; + echo "" . _('Help') . "\n"; $tabindexLink++; break; // status message