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:
Ralf Becker 2006-03-22 06:58:49 +00:00
parent 71d59ec6cb
commit 65b9f91744
6 changed files with 6 additions and 6 deletions

View File

@ -20,7 +20,7 @@
function vfs_customfields()
{
$this->db = $GLOBALS['phpgw']->db;
$this->db = clone($GLOBALS['phpgw']->db);
}

View File

@ -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);
}

View File

@ -33,7 +33,7 @@
function vfs_prefixes()
{
$this->db = $GLOBALS['phpgw']->db;
$this->db = clone($GLOBALS['phpgw']->db);
}
/*!

View File

@ -32,7 +32,7 @@
function vfs_sharing()
{
$this->accounts =& $GLOBALS['phpgw']->accounts;
$this->db = $GLOBALS['phpgw']->db;
$this->db = clone($GLOBALS['phpgw']->db);
}
/*!

View File

@ -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 ();

View File

@ -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'];