From c65032a812425bc83f370a7b6eb65d649c3d0b9e Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sat, 4 Oct 2003 13:27:38 +0000 Subject: [PATCH] restructured setup a bit: - move most of the lang-code from setup/lang.php to phpgwapi/inc/class.translation_sql.inc.php - added a minimal-auto-configuration, so one does not need to enter the config-step at all for a running installation - added the language of the admin to the installed languages --- phpgwapi/inc/class.setup_process.inc.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/phpgwapi/inc/class.setup_process.inc.php b/phpgwapi/inc/class.setup_process.inc.php index c8e1510352..6cc4d23a40 100644 --- a/phpgwapi/inc/class.setup_process.inc.php +++ b/phpgwapi/inc/class.setup_process.inc.php @@ -117,8 +117,7 @@ /* Create tables and insert new records for each app in this list */ $passing = $this->current($pass,$DEBUG); $passing = $this->default_records($passing,$DEBUG); - $my_lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'],0,2); - $passing = $this->add_langs($passing,$DEBUG,array($my_lang,'en')); + $passing = $this->add_langs($passing,$DEBUG,array(get_var('ConfigLang',Array('POST','COOKIE')),'en')); $this->save_minimal_config(); break; case 'upgrade':