diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2013-08-01 11:50:56 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2013-08-08 08:38:37 +0200 |
commit | cfbdad9cdb5c978225af796c128e4ad7bd011eee (patch) | |
tree | de220cd145ba5e1f0cf4f4da31358da368eff383 /apps/files_encryption/hooks | |
parent | 0deae7b86fbbcb8aaf4ada73950fd5a9b56f719f (diff) | |
download | nextcloud-server-cfbdad9cdb5c978225af796c128e4ad7bd011eee.tar.gz nextcloud-server-cfbdad9cdb5c978225af796c128e4ad7bd011eee.zip |
catch broken server config and disable encryption app.
Diffstat (limited to 'apps/files_encryption/hooks')
-rw-r--r-- | apps/files_encryption/hooks/hooks.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_encryption/hooks/hooks.php b/apps/files_encryption/hooks/hooks.php index 741df166b70..e933207a9e1 100644 --- a/apps/files_encryption/hooks/hooks.php +++ b/apps/files_encryption/hooks/hooks.php @@ -40,7 +40,7 @@ class Hooks { public static function login($params) {
$l = new \OC_L10N('files_encryption');
//check if all requirements are met
- if(!Helper::checkRequirements() ) {
+ if(!Helper::checkRequirements() || !Helper::checkConfiguration() ) {
$error_msg = $l->t("Missing requirements.");
$hint = $l->t('Please make sure that PHP 5.3.3 or newer is installed and that the OpenSSL PHP extension is enabled and configured properly. For now, the encryption app has been disabled.');
\OC_App::disable('files_encryption');
|