diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2013-08-12 17:25:27 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2013-08-12 17:25:27 +0200 |
commit | 53bb89824deaf97095acf6bcc2997aa7141dd573 (patch) | |
tree | 8d1ef8a3d2d71295480c1da221fdf514097e9f1e /settings | |
parent | 0bab8935c95c249405f5b12f4724d189c4ec648b (diff) | |
download | nextcloud-server-53bb89824deaf97095acf6bcc2997aa7141dd573.tar.gz nextcloud-server-53bb89824deaf97095acf6bcc2997aa7141dd573.zip |
check if some encrypted files are left after the app was disabled and warn the user
Diffstat (limited to 'settings')
-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( |