fixed help links in parseHTML() if called from templates/

This commit is contained in:
Roland Gruber 2005-04-05 12:04:37 +00:00
parent 82b4345780
commit f516106e4a
1 changed files with 3 additions and 1 deletions

View File

@ -646,7 +646,9 @@ function parseHtml($module, $input, $values, $restricted, &$tabindex, &$tabindex
break;
// help link
case 'help':
echo "<a href=../help.php?module=$module&amp;HelpNumber=". $input[$i][$j]['value'] . "&amp;scope=" . $scope . " target=\"help\" tabindex=$tabindexLink>" . _('Help') . "</a>\n";
$helpPath = "../";
if (is_file("./help.php")) $helpPath = "./";
echo "<a href=" . $helpPath . "help.php?module=$module&amp;HelpNumber=". $input[$i][$j]['value'] . "&amp;scope=" . $scope . " target=\"help\" tabindex=$tabindexLink>" . _('Help') . "</a>\n";
$tabindexLink++;
break;
// status message