Fix to work with nexcloud version 12.
This commit is contained in:
@@ -14,6 +14,6 @@
|
||||
</types>
|
||||
<category>auth</category>
|
||||
<dependencies>
|
||||
<nextcloud min-version="11" max-version="11"/>
|
||||
<nextcloud min-version="12" max-version="12"/>
|
||||
</dependencies>
|
||||
</info>
|
||||
|
||||
@@ -225,7 +225,7 @@ class Helper {
|
||||
public function connectToDb($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'],
|
||||
'password' => $this -> settings['sql_password'],
|
||||
'user' => $this -> settings['sql_username'],
|
||||
|
||||
Reference in New Issue
Block a user