diff --git a/ajax/editBookmark.php b/ajax/editBookmark.php old mode 100644 new mode 100755 index a834cd21..5bed9d08 --- a/ajax/editBookmark.php +++ b/ajax/editBookmark.php @@ -30,7 +30,7 @@ $RUNTIME_NOSETUPFS=true; OC_JSON::checkLoggedIn(); OC_JSON::checkAppEnabled('bookmarks'); -$CONFIG_DBTYPE = OC_Config::getValue( "dbtype", "sqlite" ); +$CONFIG_DBTYPE = OCP\Config::getSystemValue( "dbtype", "sqlite" ); if( $CONFIG_DBTYPE == 'sqlite' or $CONFIG_DBTYPE == 'sqlite3' ){ $_ut = "strftime('%s','now')"; } elseif($CONFIG_DBTYPE == 'pgsql') { diff --git a/bookmarksHelper.php b/bookmarksHelper.php index 25c9b4cc..e299f9ee 100755 --- a/bookmarksHelper.php +++ b/bookmarksHelper.php @@ -72,7 +72,7 @@ function getURLMetadata($url) { } function addBookmark($url, $title, $tags='') { - $CONFIG_DBTYPE = OC_Config::getValue( "dbtype", "sqlite" ); + $CONFIG_DBTYPE = OCP\Config::getSystemValue( "dbtype", "sqlite" ); if( $CONFIG_DBTYPE == 'sqlite' or $CONFIG_DBTYPE == 'sqlite3' ){ $_ut = "strftime('%s','now')"; } elseif($CONFIG_DBTYPE == 'pgsql') { diff --git a/lib/bookmarks.php b/lib/bookmarks.php index 3f27af09..cbc50fdb 100755 --- a/lib/bookmarks.php +++ b/lib/bookmarks.php @@ -35,7 +35,7 @@ class OC_Bookmarks_Bookmarks{ */ public static function findBookmarks($offset, $sqlSortColumn, $filter, $filterTagOnly){ //OCP\Util::writeLog('bookmarks', 'findBookmarks ' .$offset. ' '.$sqlSortColumn.' '. $filter.' '. $filterTagOnly ,OCP\Util::DEBUG); - $CONFIG_DBTYPE = OC_Config::getValue( 'dbtype', 'sqlite' ); + $CONFIG_DBTYPE = OCP\Config::getSystemValue( 'dbtype', 'sqlite' ); $params=array(OCP\USER::getUser());