mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-20 09:58:04 +02: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_info']['server']['db_persistent'] = False;
|
||||||
}
|
}
|
||||||
$GLOBALS['egw']->db = $this->db = new egw_db();
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$this->db->connect(
|
$GLOBALS['egw']->db = $this->db = new egw_db($GLOBALS['egw_domain'][$this->ConfigDomain]);
|
||||||
$GLOBALS['egw_domain'][$this->ConfigDomain]['db_name'],
|
$this->db->connect();
|
||||||
$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']
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
catch (Exception $e) {
|
catch (Exception $e) {
|
||||||
return;
|
return;
|
||||||
|
@ -137,14 +137,7 @@ abstract class setup_cmd extends admin_cmd
|
|||||||
if (is_object($GLOBALS['egw']->db) && $domain)
|
if (is_object($GLOBALS['egw']->db) && $domain)
|
||||||
{
|
{
|
||||||
$GLOBALS['egw']->db->disconnect();
|
$GLOBALS['egw']->db->disconnect();
|
||||||
$GLOBALS['egw']->db->connect(
|
$GLOBALS['egw']->db = new egw_db($GLOBALS['egw_domain'][$domain]);
|
||||||
$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']
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -157,14 +150,8 @@ abstract class setup_cmd extends admin_cmd
|
|||||||
if (is_object($GLOBALS['egw']->db))
|
if (is_object($GLOBALS['egw']->db))
|
||||||
{
|
{
|
||||||
$GLOBALS['egw']->db->disconnect();
|
$GLOBALS['egw']->db->disconnect();
|
||||||
$GLOBALS['egw']->db->connect(
|
$GLOBALS['egw']->db = new egw_db($GLOBALS['egw_info']['server']);
|
||||||
$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']
|
|
||||||
);
|
|
||||||
if (!is_null(self::$egw_accounts_backup))
|
if (!is_null(self::$egw_accounts_backup))
|
||||||
{
|
{
|
||||||
$GLOBALS['egw']->accounts = self::$egw_accounts_backup;
|
$GLOBALS['egw']->accounts = self::$egw_accounts_backup;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user