Fix to work with nexcloud version 12.

This commit is contained in:
lojewskimarcin
2017-06-18 11:33:13 +02:00
parent 05573dbf26
commit 01f2aff0ae
2 changed files with 2 additions and 2 deletions

View File

@@ -14,6 +14,6 @@
</types> </types>
<category>auth</category> <category>auth</category>
<dependencies> <dependencies>
<nextcloud min-version="11" max-version="11"/> <nextcloud min-version="12" max-version="12"/>
</dependencies> </dependencies>
</info> </info>

View File

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