diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2013-08-12 19:25:27 +0400 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2013-08-12 19:25:27 +0400 |
commit | 53bb89824deaf97095acf6bcc2997aa7141dd573 (patch) | |
tree | 8d1ef8a3d2d71295480c1da221fdf514097e9f1e /settings/personal.php | |
parent | 0bab8935c95c249405f5b12f4724d189c4ec648b (diff) |
check if some encrypted files are left after the app was disabled and warn the user
Diffstat (limited to 'settings/personal.php')
-rw-r--r-- | settings/personal.php | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/settings/personal.php b/settings/personal.php index bad19ba03ce..e69898f6f8f 100644 --- a/settings/personal.php +++ b/settings/personal.php @@ -25,13 +25,7 @@ $userLang=OC_Preferences::getValue( OC_User::getUser(), 'core', 'lang', OC_L10N: $languageCodes=OC_L10N::findAvailableLanguages(); //check if encryption was enabled in the past -$enableDecryptAll = false; -if (OC_App::isEnabled('files_encryption') === false) { - $view = new OC\Files\View('/'.OCP\User::getUser()); - if($view->file_exists('/files_encryption/keyfiles')) { - $enableDecryptAll = true; - } -} +$enableDecryptAll = OC_Util::encryptedFiles(); // array of common languages $commonlangcodes = array( |