fixed help in self service
This commit is contained in:
parent
25849a874c
commit
56fbf6ad74
|
@ -692,7 +692,11 @@ function printHelpLink($entry, $number, $module = '', $scope = '', $classes = ar
|
|||
// replace special characters
|
||||
$message = htmlspecialchars($message);
|
||||
$title = htmlspecialchars($title);
|
||||
echo "<a class=\"margin2 " . implode(" ", $classes) . "\" href=\"" . $helpPath . "help.php?module=$module&HelpNumber=". $number . "&scope=" . $scope . "\" ";
|
||||
$selfServiceOption = '';
|
||||
if (isSelfService()) {
|
||||
$selfServiceOption = '&selfService=1';
|
||||
}
|
||||
echo "<a class=\"margin2 " . implode(" ", $classes) . "\" href=\"" . $helpPath . "help.php?module=$module&HelpNumber=". $number . "&scope=" . $scope . $selfServiceOption . "\" ";
|
||||
echo "target=\"help\">";
|
||||
echo "<img helptitle=\"" . $title . "\" helpdata=\"" . $message . "\" class=\"align-middle\" width=16 height=16 src=\"../${helpPath}graphics/help.png\" alt=\"" . _('Help') . "\">";
|
||||
echo "</a>";
|
||||
|
|
|
@ -39,6 +39,12 @@ include_once("../lib/ldap.inc");
|
|||
/** configuration */
|
||||
include_once("../lib/config.inc");
|
||||
|
||||
/** self service functions */
|
||||
include_once("../lib/selfService.inc");
|
||||
if (!empty($_GET['selfService']) && ($_GET['selfService'] === '1')) {
|
||||
session_name('SELFSERVICE');
|
||||
}
|
||||
|
||||
if (strtolower(session_module_name()) == 'files') {
|
||||
session_save_path("../sess");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue