Fix to work with nextcloud version 11.
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
require_once('apps/user_sql/user_sql.php');
|
||||
require_once __DIR__ . '/../user_sql.php';
|
||||
\OCP\App::registerAdmin('user_sql','settings');
|
||||
|
||||
$backend = new \OCA\user_sql\OC_USER_SQL;
|
||||
|
||||
@@ -15,6 +15,6 @@
|
||||
<category>auth</category>
|
||||
<dependencies>
|
||||
<owncloud min-version="8.1" max-version="9.1"/>
|
||||
<nextcloud min-version="9" max-version="10"/>
|
||||
<nextcloud min-version="9" max-version="11"/>
|
||||
</dependencies>
|
||||
</info>
|
||||
|
||||
@@ -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'],
|
||||
|
||||
Reference in New Issue
Block a user