From 0ae667e6cfdd1bcc85bacf85cd93a84f99fa88f8 Mon Sep 17 00:00:00 2001 From: cfoe <cfoe@ispconfig3> Date: Tue, 22 May 2012 04:08:05 -0400 Subject: [PATCH] added missing language string already present in default theme --- install/install.php | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/install/install.php b/install/install.php index 46c313e..3f86370 100644 --- a/install/install.php +++ b/install/install.php @@ -104,7 +104,10 @@ //** Select the language and set default timezone $conf['language'] = $inst->simple_query('Select language', array('en','de'), 'en'); -$conf['timezone'] = 'UTC'; + +exec('date +%Z', $tmp_out); +$conf['timezone'] = $tmp_out[0]; +unset($tmp_out); //** Select installation mode $install_mode = $inst->simple_query('Installation mode', array('standard','expert'), 'standard'); @@ -113,7 +116,7 @@ //** Get the hostname $tmp_out = array(); exec('hostname -f', $tmp_out); -$conf['hostname'] = $inst->free_query('Full qualified hostname (FQDN) of the server, eg server1.domain.tld ', $tmp_out[0]); +$conf['hostname'] = $inst->free_query('Full qualified hostname (FQDN) of the server, eg server1.domain.tld ', @$tmp_out[0]); unset($tmp_out); // Check if the mysql functions are loaded in PHP -- Gitblit v1.9.1