X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gosa-core%2Fhtml%2Fsetup.php;h=8f733d33907fc9ce62fc61a215bf94c77eafc88d;hb=ab302c2472a7c64058e4f0d7aa11a5cc639ad7ea;hp=87eb0ec8901d8f757dd1d74c70437f035e10264a;hpb=3cab42f378c95a0ee58ef0cb62dea7baaced83ff;p=gosa.git diff --git a/gosa-core/html/setup.php b/gosa-core/html/setup.php index 87eb0ec89..8f733d339 100644 --- a/gosa-core/html/setup.php +++ b/gosa-core/html/setup.php @@ -69,8 +69,8 @@ if (!(is_dir($smarty->compile_dir) && is_writable($smarty->compile_dir))){ } /* 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'] != ""){ @@ -143,8 +143,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: