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
|
// replace special characters
|
||||||
$message = htmlspecialchars($message);
|
$message = htmlspecialchars($message);
|
||||||
$title = htmlspecialchars($title);
|
$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 "target=\"help\">";
|
||||||
echo "<img helptitle=\"" . $title . "\" helpdata=\"" . $message . "\" class=\"align-middle\" width=16 height=16 src=\"../${helpPath}graphics/help.png\" alt=\"" . _('Help') . "\">";
|
echo "<img helptitle=\"" . $title . "\" helpdata=\"" . $message . "\" class=\"align-middle\" width=16 height=16 src=\"../${helpPath}graphics/help.png\" alt=\"" . _('Help') . "\">";
|
||||||
echo "</a>";
|
echo "</a>";
|
||||||
|
|
|
@ -39,6 +39,12 @@ include_once("../lib/ldap.inc");
|
||||||
/** configuration */
|
/** configuration */
|
||||||
include_once("../lib/config.inc");
|
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') {
|
if (strtolower(session_module_name()) == 'files') {
|
||||||
session_save_path("../sess");
|
session_save_path("../sess");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue