mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-24 15:49:06 +01:00
cloning the DB-object, maybe that fixes some of the problems the people on the list have with VFS2 and PHP5
This commit is contained in:
parent
71d59ec6cb
commit
65b9f91744
@ -20,7 +20,7 @@
|
||||
|
||||
function vfs_customfields()
|
||||
{
|
||||
$this->db = $GLOBALS['phpgw']->db;
|
||||
$this->db = clone($GLOBALS['phpgw']->db);
|
||||
|
||||
}
|
||||
|
||||
|
@ -37,7 +37,7 @@
|
||||
|
||||
$this->default_filetype_icon = PHPGW_INCLUDE_ROOT.'/filescenter/icons/default.gif';
|
||||
|
||||
$this->db = $GLOBALS['phpgw']->db;
|
||||
$this->db = clone($GLOBALS['phpgw']->db);
|
||||
|
||||
}
|
||||
|
||||
|
@ -33,7 +33,7 @@
|
||||
|
||||
function vfs_prefixes()
|
||||
{
|
||||
$this->db = $GLOBALS['phpgw']->db;
|
||||
$this->db = clone($GLOBALS['phpgw']->db);
|
||||
}
|
||||
|
||||
/*!
|
||||
|
@ -32,7 +32,7 @@
|
||||
function vfs_sharing()
|
||||
{
|
||||
$this->accounts =& $GLOBALS['phpgw']->accounts;
|
||||
$this->db = $GLOBALS['phpgw']->db;
|
||||
$this->db = clone($GLOBALS['phpgw']->db);
|
||||
}
|
||||
|
||||
/*!
|
||||
|
@ -112,7 +112,7 @@
|
||||
$GLOBALS['phpgw']->common->phpgw_exit();
|
||||
}
|
||||
|
||||
$this->db =& $GLOBALS['phpgw']->db;
|
||||
$this->db = clone($GLOBALS['phpgw']->db);
|
||||
$this->db_hl =& $GLOBALS['phpgw']->db_hl;
|
||||
|
||||
$this->vfs_shared ();
|
||||
|
@ -97,7 +97,7 @@
|
||||
}
|
||||
|
||||
$this->snapshotted_files = array();
|
||||
$this->db =& $GLOBALS['phpgw']->db;
|
||||
$this->db =& clone($GLOBALS['phpgw']->db);
|
||||
$this->now = date('Y-m-d H:i:s');
|
||||
$this->account_id = $GLOBALS['phpgw_info']['user']['account_id'];
|
||||
$this->tmp_dir = $GLOBALS['phpgw_info']['server']['temp_dir'];
|
||||
|
Loading…
Reference in New Issue
Block a user