Fix to work with nextcloud version 11.

This commit is contained in:
Marcin Łojewski
2017-02-04 09:22:32 +01:00
parent 956df86e0a
commit 02b53fad1a
3 changed files with 3 additions and 3 deletions

View File

@@ -225,7 +225,7 @@ class Helper {
public function connectToDb($settings)
{
$this -> settings = $settings;
$cm = new \OC\DB\ConnectionFactory();
$cm = new \OC\DB\ConnectionFactory(\OC::$server->getConfig());
$parameters = array('host' => $this -> settings['sql_hostname'],
'password' => $this -> settings['sql_password'],
'user' => $this -> settings['sql_username'],