summaryrefslogtreecommitdiffstats
path: root/apps/files_encryption/appinfo
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2013-07-01 12:16:36 +0200
committerBjörn Schießle <schiessle@owncloud.com>2013-07-01 12:16:36 +0200
commitadcee5b695c25bc9e06dc9aeddb4ae2713a2ea05 (patch)
tree3f8591212f55b24a57e08af9accc378b71f5caf5 /apps/files_encryption/appinfo
parentcb5811bcf53c884a47f29045c8c772424d9ab6f4 (diff)
downloadnextcloud-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/appinfo')
-rw-r--r--apps/files_encryption/appinfo/app.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/files_encryption/appinfo/app.php b/apps/files_encryption/appinfo/app.php
index d97811bb791..78b226be013 100644
--- a/apps/files_encryption/appinfo/app.php
+++ b/apps/files_encryption/appinfo/app.php
@@ -34,10 +34,9 @@ if (!OC_Config::getValue('maintenance', false)) {
$view = new OC_FilesystemView('/');
- $sessionReady = false;
- if(extension_loaded("openssl")) {
+ $sessionReady = OCA\Encryption\Helper::checkRequirements();
+ if($sessionReady) {
$session = new \OCA\Encryption\Session($view);
- $sessionReady = true;
}
$user = \OCP\USER::getUser();