X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=html%2Fhelpviewer.php;h=d1828ac92086ba6f49b13232096f3f85baaa4ac6;hb=bf6e99ebb13e00dc648dba59408ff958fc16670d;hp=dddf0cd8b0c6a72bfc98f5165e399cf00460c508;hpb=e70bc4f9de45488978032f1f2a6c16ce7e498bdf;p=gosa.git diff --git a/html/helpviewer.php b/html/helpviewer.php index dddf0cd8b..d1828ac92 100644 --- a/html/helpviewer.php +++ b/html/helpviewer.php @@ -64,6 +64,7 @@ if (isset ($config->data['MAIN']['COMPILE'])){ } else { $smarty->compile_dir= '/var/spool/gosa/'; } +$smarty->assign("title", "GOsa - "._("Help browser")); /* HELP management starts here ... */ @@ -94,7 +95,7 @@ $backward =$defaultpage; $index =$defaultpage; $forward ="node1.html"; - +$helpdir =""; /* Every class which is called within a tab, stores its name in the Session. * If $_SESSION['current_class_for_help'] isset, * get the helpfile specified in the xml file and display it. @@ -109,7 +110,7 @@ if(isset($_SESSION['current_class_for_help'])){ $str = $xml->parse(); /* __LANG__ is used as placeholder for the used language*/ - $helpdir= preg_replace("/__LANG__/i",$lang,$str[($_SESSION['current_class_for_help'])]['PATH']); + $helpdir= @preg_replace("/__LANG__/i",$lang,$str[($_SESSION['current_class_for_help'])]['PATH']); /* If there is no entry in the xml file for this class, display an error message */ if($helpdir == ""){ @@ -171,7 +172,6 @@ if(isset($_GET['pg'])){ } } } - $helpdir.="/"; /* Save current settings */ @@ -189,11 +189,11 @@ while($file = readdir($f)){ /* Some replacements */ $backwardlink = " - \""._("previous")."\" + \""._("previous")."\" "; $forwardlink = " - \""._("next")."\" + \""._("next")."\" ";