From f6ac4ea6836529966ef8f664387c1bf9587d8f04 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Fri, 28 Nov 2014 16:51:10 +0100 Subject: [PATCH] migrate from OC_Preferences to DI config object --- lib/backend/abstractbackend.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/backend/abstractbackend.php b/lib/backend/abstractbackend.php index 8dec5e73..c3a79587 100644 --- a/lib/backend/abstractbackend.php +++ b/lib/backend/abstractbackend.php @@ -458,8 +458,7 @@ abstract class AbstractBackend { public function removePreferences($addressbookid) { $key = $this->combinedKey($addressbookid); $key = 'prefs_' . $key; - - \OC_Preferences::deleteKey( $this->userid, 'contacts', $key ); + \OC::$server->getConfig()->deleteUserValue( $this->userid, 'contacts', $key ); } }