mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 08:34:42 +01:00
using new syntax
This commit is contained in:
parent
3aac26d1ab
commit
e23996a45b
@ -110,17 +110,10 @@ class setup
|
||||
{
|
||||
$GLOBALS['egw_info']['server']['db_persistent'] = False;
|
||||
}
|
||||
$GLOBALS['egw']->db = $this->db = new egw_db();
|
||||
|
||||
try {
|
||||
$this->db->connect(
|
||||
$GLOBALS['egw_domain'][$this->ConfigDomain]['db_name'],
|
||||
$GLOBALS['egw_domain'][$this->ConfigDomain]['db_host'],
|
||||
$GLOBALS['egw_domain'][$this->ConfigDomain]['db_port'],
|
||||
$GLOBALS['egw_domain'][$this->ConfigDomain]['db_user'],
|
||||
$GLOBALS['egw_domain'][$this->ConfigDomain]['db_pass'],
|
||||
$GLOBALS['egw_domain'][$this->ConfigDomain]['db_type']
|
||||
);
|
||||
$GLOBALS['egw']->db = $this->db = new egw_db($GLOBALS['egw_domain'][$this->ConfigDomain]);
|
||||
$this->db->connect();
|
||||
}
|
||||
catch (Exception $e) {
|
||||
return;
|
||||
|
@ -137,14 +137,7 @@ abstract class setup_cmd extends admin_cmd
|
||||
if (is_object($GLOBALS['egw']->db) && $domain)
|
||||
{
|
||||
$GLOBALS['egw']->db->disconnect();
|
||||
$GLOBALS['egw']->db->connect(
|
||||
$GLOBALS['egw_domain'][$domain]['db_name'],
|
||||
$GLOBALS['egw_domain'][$domain]['db_host'],
|
||||
$GLOBALS['egw_domain'][$domain]['db_port'],
|
||||
$GLOBALS['egw_domain'][$domain]['db_user'],
|
||||
$GLOBALS['egw_domain'][$domain]['db_pass'],
|
||||
$GLOBALS['egw_domain'][$domain]['db_type']
|
||||
);
|
||||
$GLOBALS['egw']->db = new egw_db($GLOBALS['egw_domain'][$domain]);
|
||||
}
|
||||
}
|
||||
|
||||
@ -157,14 +150,8 @@ abstract class setup_cmd extends admin_cmd
|
||||
if (is_object($GLOBALS['egw']->db))
|
||||
{
|
||||
$GLOBALS['egw']->db->disconnect();
|
||||
$GLOBALS['egw']->db->connect(
|
||||
$GLOBALS['egw_info']['server']['db_name'],
|
||||
$GLOBALS['egw_info']['server']['db_host'],
|
||||
$GLOBALS['egw_info']['server']['db_port'],
|
||||
$GLOBALS['egw_info']['server']['db_user'],
|
||||
$GLOBALS['egw_info']['server']['db_pass'],
|
||||
$GLOBALS['egw_info']['server']['db_type']
|
||||
);
|
||||
$GLOBALS['egw']->db = new egw_db($GLOBALS['egw_info']['server']);
|
||||
|
||||
if (!is_null(self::$egw_accounts_backup))
|
||||
{
|
||||
$GLOBALS['egw']->accounts = self::$egw_accounts_backup;
|
||||
|
Loading…
Reference in New Issue
Block a user