diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2014-05-06 19:20:49 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-06-05 16:54:04 +0200 |
commit | eb29b2984cf81f25df42d59ce1d5c9a9b307763c (patch) | |
tree | 7277d43f58f92aa3fd58bb863bf4bbf344f4a71b /apps/files_encryption/hooks/hooks.php | |
parent | 2d83424a29e4dbaeb16856c87378a753b10cdb90 (diff) | |
download | nextcloud-server-eb29b2984cf81f25df42d59ce1d5c9a9b307763c.tar.gz nextcloud-server-eb29b2984cf81f25df42d59ce1d5c9a9b307763c.zip |
use oc_preferences instead of oc_encryption to store encyption settings
Diffstat (limited to 'apps/files_encryption/hooks/hooks.php')
-rw-r--r-- | apps/files_encryption/hooks/hooks.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/files_encryption/hooks/hooks.php b/apps/files_encryption/hooks/hooks.php index d1ee4a97d15..66e2bccd59f 100644 --- a/apps/files_encryption/hooks/hooks.php +++ b/apps/files_encryption/hooks/hooks.php @@ -530,8 +530,7 @@ class Hooks { public static function preDisable($params) {
if ($params['app'] === 'files_encryption') {
- $setMigrationStatus = \OC_DB::prepare('UPDATE `*PREFIX*encryption` SET `migration_status`=0');
- $setMigrationStatus->execute();
+ \OC_Preferences::deleteAppFromAllUsers('files_encryption');
$session = new \OCA\Encryption\Session(new \OC\Files\View('/'));
$session->setInitialized(\OCA\Encryption\Session::NOT_INITIALIZED);
|