From 0d4f0ab87182cf2cb588bd3285fe41b46f26ee4d Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Thu, 4 Dec 2014 16:48:07 +0100 Subject: reduce OC_Preferences, OC_Config and \OCP\Config usage * files_encryption * files_versions * files_trashbin * tests * status.php * core * server container --- apps/files_encryption/hooks/hooks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/files_encryption/hooks') diff --git a/apps/files_encryption/hooks/hooks.php b/apps/files_encryption/hooks/hooks.php index a6b7555b376..f26eefa30e2 100644 --- a/apps/files_encryption/hooks/hooks.php +++ b/apps/files_encryption/hooks/hooks.php @@ -502,7 +502,7 @@ class Hooks { public static function preDisable($params) { if ($params['app'] === 'files_encryption') { - \OC_Preferences::deleteAppFromAllUsers('files_encryption'); + \OC::$server->getConfig()->deleteAppFromAllUsers('files_encryption'); $session = new \OCA\Encryption\Session(new \OC\Files\View('/')); $session->setInitialized(\OCA\Encryption\Session::NOT_INITIALIZED); -- cgit v1.2.3