Code

Removed SINGLE-VALUE from gosaLastSystemLogin.
[gosa.git] / gosa-core / html / helpviewer.php
index 0be42bbe6c461df88b8df59dbba692eba3ee5061..95d56caaaba07b2ec6a15b1f10842d6861e28b00 100644 (file)
@@ -42,10 +42,9 @@ $ui= session::get('ui');
 $config= session::get('config');
 
 /* Language setup */
-if ($config->data['MAIN']['LANG'] == ""){
+$lang= $config->get_cfg_value("lang");
+if ($lang == ""){
   $lang= get_browser_language();
-} else {
-  $lang= $config->data['MAIN']['LANG'];
 }
 
 $lang.=".UTF-8";
@@ -62,11 +61,7 @@ textdomain($domain);
 @DEBUG (DEBUG_TRACE, __LINE__, __FUNCTION__, __FILE__, $lang, "Setting language to");
 
 $config= session::get('config');
-if (isset ($config->data['MAIN']['COMPILE'])){
-  $smarty->compile_dir= $config->data['MAIN']['COMPILE'];
-} else {
-  $smarty->compile_dir= '/var/spool/gosa/';
-}
+$smarty->compile_dir= $config->get_cfg_value("compile", "/var/spool/gosa/");
 $smarty->assign("title", "GOsa - "._("Help browser"));
 
 /* HELP management starts here ...
@@ -142,7 +137,8 @@ if(session::is_set('current_class_for_help')){
 
 }elseif(isset($_GET['plug'])){
   /* This displays helpfiles depending on the current $_GET[plug] */
-  $tmp                          = new pluglist(session::get('config'),get_userinfo());
+  $ui= get_userinfo();
+  $tmp                          = new pluglist(session::get('config'), $ui);
   $path                         = $tmp->get_path($_GET['plug']);
   $helpobject['currentplug']    = $path;
   $helpobject['file']           = "index.html";