Code

Fixed stats handling
[gosa.git] / gosa-core / html / helpviewer.php
index f9b72d1bfefb7fee38ac67ad415e5cd21bafa23c..1bcfa141c3027f24266bfbb8e284675832445e09 100644 (file)
@@ -42,7 +42,7 @@ $ui= session::global_get('ui');
 $config= session::global_get('config');
 
 /* Language setup */
-$lang= $config->get_cfg_value("language");
+$lang= $config->get_cfg_value("core","language");
 if ($lang == ""){
   $lang= get_browser_language();
 }
@@ -60,7 +60,7 @@ bindtextdomain($domain, LOCALE_DIR);
 textdomain($domain);
 @DEBUG (DEBUG_TRACE, __LINE__, __FUNCTION__, __FILE__, $lang, "Setting language to");
 
-$smarty->compile_dir= $config->get_cfg_value("compile", "/var/spool/gosa/");
+$smarty->compile_dir= $config->get_cfg_value("core","templateCompileDirectory");
 $smarty->assign("title", "GOsa - "._("Help browser"));
 
 /* HELP management starts here ...
@@ -115,7 +115,7 @@ if(session::global_is_set('current_class_for_help')){
   /* If there is no entry in the xml file for this class, display an error message */
   if($helpdir == ""){
     
-    $smarty->assign("help_contents","<br><h2>"._("There is no helpfile specified for this class"))."</h2>";
+    $smarty->assign("help_contents","<br><h2>"._("There is no help file specified for this class"))."</h2>";
     $header= "<!-- headers.tpl-->".$smarty->fetch(get_template_path('headers.tpl'));
     $display= (  $header.$smarty->fetch(get_template_path('help.tpl')));
     echo $display;
@@ -150,7 +150,7 @@ if(session::global_is_set('current_class_for_help')){
 if(isset($_GET['pg'])){
  
   if(preg_match("/\//",$_GET['pg'])){
-    $arr = split("\/",$_GET['pg']);
+    $arr = explode("/", $_GET['pg']);
     $helpobject['currentplug'] = "../doc/core/".$helpobject['lang']."/html/".$arr[0];
     $helpdir = $helpobject['currentplug'];
     $helpobject['file']= $arr[1];
@@ -265,7 +265,7 @@ if(isset($_POST['search'])){
 }else{
   
   /* There was a file requested which actually doesn't exists */
-  $smarty->assign("help_contents","<h2>".sprintf(_("Helpdir '%s' is not accessible, can't read any helpfiles."),$helpdir))."</h2><br>";
+  $smarty->assign("help_contents","<h2>".sprintf(_("Help directory '%s' is not accessible, can't read any help files."),$helpdir))."</h2><br>";
   $header= "<!-- headers.tpl-->".$smarty->fetch(get_template_path('headers.tpl'));
   $display= (  $header.$smarty->fetch(get_template_path('help.tpl')));
   echo $display;