fixed help in self service

This commit is contained in:
Roland Gruber 2017-08-20 19:40:11 +02:00
parent 25849a874c
commit 56fbf6ad74
2 changed files with 11 additions and 1 deletions

View File

@ -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&amp;HelpNumber=". $number . "&amp;scope=" . $scope . "\" ";
$selfServiceOption = '';
if (isSelfService()) {
$selfServiceOption = '&amp;selfService=1';
}
echo "<a class=\"margin2 " . implode(" ", $classes) . "\" href=\"" . $helpPath . "help.php?module=$module&amp;HelpNumber=". $number . "&amp;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>";

View File

@ -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");
}