Code

Updated configRegistry
[gosa.git] / gosa-core / html / setup.php
index 87eb0ec8901d8f757dd1d74c70437f035e10264a..b402b0116368345d8fdb8f79b7f318823c6ec181 100644 (file)
@@ -50,7 +50,7 @@ ini_set("session.gc_maxlifetime",24*60*60);
 
 /* Start session */
 session::start();
-session::global_set('DEBUGLEVEL',1);
+session::global_set('debugLevel',1);
 session::set('errorsAlreadyPosted',array());
 
 /* Attribute initialization, reset errors */
@@ -63,14 +63,14 @@ $smarty->compile_dir= '/var/spool/gosa/';
 
 /* Check for compile directory */
 if (!(is_dir($smarty->compile_dir) && is_writable($smarty->compile_dir))){
-  msg_dialog::display(_("Smarty"),sprintf(_("Directory '%s' specified as compile directory is not accessible!"),
-    $smarty->compile_dir),FATAL_ERROR_DIALOG);
+  msg_dialog::display(_("Smarty"),sprintf( _("Compile directory %s is not accessible!"),
+    bold($smarty->compile_dir)),FATAL_ERROR_DIALOG);
   exit();
 }
 
 /* Get posted language */
-if(!session::global_is_set('language')){
-  session::global_set('language',get_browser_language());
+if(!session::global_is_set('lang')){
+  session::global_set('lang',get_browser_language());
 }
 if(isset($_POST['lang_selected'])){
   if($_POST['lang_selected'] != ""){
@@ -113,6 +113,7 @@ textdomain($domain);
 $display = "";
 require_once("../setup/main.inc");
 
+$smarty->assign ("title","GOsa");
 $smarty->assign("date", date("l, dS F Y H:i:s O"));
 $header= "<!-- headers.tpl-->".$smarty->fetch(get_template_path('setup_headers.tpl'));
 
@@ -143,8 +144,11 @@ if ($error_collector != ""){
 } else {
   $smarty->assign("php_errors", "");
 }
-
-$smarty->assign("version",get_gosa_version());
+if(function_exists("get_gosa_version")){
+  $smarty->assign("version",get_gosa_version());
+}else{
+  $smarty->assign("version","");
+}
 
 echo $header.$smarty->fetch("../setup/setup_frame.tpl");
 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: