X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gosa-core%2Fhtml%2Fhelpviewer.php;h=95d56caaaba07b2ec6a15b1f10842d6861e28b00;hb=630626c6abe0a2d649dd03221ac43dd4ed53b0c0;hp=b09ea4cd46092222915b9e889d014dc8b9fe6a33;hpb=bd9d8ae40ea9990104280d1ebbbb8d53c566ff1b;p=gosa.git diff --git a/gosa-core/html/helpviewer.php b/gosa-core/html/helpviewer.php index b09ea4cd4..95d56caaa 100644 --- a/gosa-core/html/helpviewer.php +++ b/gosa-core/html/helpviewer.php @@ -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 ...