diff options
author | Björn Schießle <schiessle@owncloud.com> | 2013-07-01 12:16:36 +0200 |
---|---|---|
committer | Björn Schießle <schiessle@owncloud.com> | 2013-07-01 12:16:36 +0200 |
commit | adcee5b695c25bc9e06dc9aeddb4ae2713a2ea05 (patch) | |
tree | 3f8591212f55b24a57e08af9accc378b71f5caf5 /apps/files_encryption/hooks | |
parent | cb5811bcf53c884a47f29045c8c772424d9ab6f4 (diff) | |
download | nextcloud-server-adcee5b695c25bc9e06dc9aeddb4ae2713a2ea05.tar.gz nextcloud-server-adcee5b695c25bc9e06dc9aeddb4ae2713a2ea05.zip |
check php version, the encryption app needs php >= 5.3.3
Diffstat (limited to 'apps/files_encryption/hooks')
-rw-r--r-- | apps/files_encryption/hooks/hooks.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/files_encryption/hooks/hooks.php b/apps/files_encryption/hooks/hooks.php index e39e068cc5d..786de177e89 100644 --- a/apps/files_encryption/hooks/hooks.php +++ b/apps/files_encryption/hooks/hooks.php @@ -39,10 +39,10 @@ class Hooks { */
public static function login($params) {
$l = new \OC_L10N('files_encryption');
- //check if openssl is available
- if(!extension_loaded("openssl") ) {
- $error_msg = $l->t("PHP module OpenSSL is not installed.");
- $hint = $l->t('Please ask your server administrator to install the module. For now the encryption app was disabled.');
+ //check if all requirements are met
+ if(!Helper::checkRequirements() ) {
+ $error_msg = $l->t("Missing requirements.");
+ $hint = $l->t('Please make sure that the OpenSSL module and PHP >0 5.3.3 is installed. For now the encryption app was disabled.');
\OC_App::disable('files_encryption');
\OCP\Util::writeLog('Encryption library', $error_msg . ' ' . $hint, \OCP\Util::ERROR);
\OCP\Template::printErrorPage($error_msg, $hint);
|