Code

Fiyes broken login if schema files are not readable.
[gosa.git] / html / helpviewer.php
index dddf0cd8b0c6a72bfc98f5165e399cf00460c508..511dc06676e4806f08294af1e238d8740a19ac0f 100644 (file)
@@ -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 */