Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/user_sql.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlojewskimarcin <nb3950b5>2017-06-18 12:33:13 +0300
committerlojewskimarcin <nb3950b5>2017-06-18 12:33:13 +0300
commit01f2aff0aeb27d99cdf7f9289085ed92ad2db826 (patch)
tree882429536f6e8dc55e3e44fec462df7c6cb0af9d
parent05573dbf26d399f5b882515b4a2a2bf757dd463d (diff)
Fix to work with nexcloud version 12.v2.3.1-nc12
-rw-r--r--appinfo/info.xml2
-rw-r--r--lib/helper.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/appinfo/info.xml b/appinfo/info.xml
index 2c30aca..2b557d1 100644
--- a/appinfo/info.xml
+++ b/appinfo/info.xml
@@ -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>
diff --git a/lib/helper.php b/lib/helper.php
index e6d6d23..47cdf44 100644
--- a/lib/helper.php
+++ b/lib/helper.php
@@ -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'],