fixed help links in parseHTML() if called from templates/
This commit is contained in:
parent
82b4345780
commit
f516106e4a
|
@ -646,7 +646,9 @@ function parseHtml($module, $input, $values, $restricted, &$tabindex, &$tabindex
|
||||||
break;
|
break;
|
||||||
// help link
|
// help link
|
||||||
case 'help':
|
case 'help':
|
||||||
echo "<a href=../help.php?module=$module&HelpNumber=". $input[$i][$j]['value'] . "&scope=" . $scope . " target=\"help\" tabindex=$tabindexLink>" . _('Help') . "</a>\n";
|
$helpPath = "../";
|
||||||
|
if (is_file("./help.php")) $helpPath = "./";
|
||||||
|
echo "<a href=" . $helpPath . "help.php?module=$module&HelpNumber=". $input[$i][$j]['value'] . "&scope=" . $scope . " target=\"help\" tabindex=$tabindexLink>" . _('Help') . "</a>\n";
|
||||||
$tabindexLink++;
|
$tabindexLink++;
|
||||||
break;
|
break;
|
||||||
// status message
|
// status message
|
||||||
|
|
Loading…
Reference in New Issue