Skip to content

Commit

Permalink
Fix to work with nexcloud version 12.
Browse files Browse the repository at this point in the history
  • Loading branch information
lojewskimarcin committed Jun 18, 2017
1 parent 05573db commit 01f2aff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
2 changes: 1 addition & 1 deletion lib/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ public function runQuery($type, $params, $execOnly = false, $fetchArray = false,
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'],
Expand Down

0 comments on commit 01f2aff

Please sign in to comment.