Fix to work with nexcloud version 12.
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -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'],
|
||||||
|
|||||||
Reference in New Issue
Block a user