mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
fix no longer working db-creation after 6dfe752b7f
allow to switch whole database readonly
This commit is contained in:
parent
bb5a845600
commit
4a147c74a1
@ -504,6 +504,8 @@ abstract class admin_cmd
|
|||||||
case 'accounts':
|
case 'accounts':
|
||||||
self::_instanciate_accounts();
|
self::_instanciate_accounts();
|
||||||
return self::$accounts;
|
return self::$accounts;
|
||||||
|
case 'data':
|
||||||
|
return $this->data;
|
||||||
}
|
}
|
||||||
return $this->data[$property];
|
return $this->data[$property];
|
||||||
}
|
}
|
||||||
|
@ -141,7 +141,7 @@ class setup_cmd_database extends setup_cmd
|
|||||||
private function connect($user=null,$pass=null,$name=null)
|
private function connect($user=null,$pass=null,$name=null)
|
||||||
{
|
{
|
||||||
// propagate all db_* vars
|
// propagate all db_* vars
|
||||||
$this->test_db = new Api\Db(get_object_vars($this));
|
$this->test_db = new Api\Db($this->data);
|
||||||
|
|
||||||
$error_rep = error_reporting();
|
$error_rep = error_reporting();
|
||||||
error_reporting($error_rep & ~E_WARNING); // switch warnings off, in case they are on
|
error_reporting($error_rep & ~E_WARNING); // switch warnings off, in case they are on
|
||||||
|
Loading…
Reference in New Issue
Block a user