summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjörn Schießle <bjoern@schiessle.org>2014-12-04 14:07:09 +0100
committerBjörn Schießle <bjoern@schiessle.org>2014-12-04 14:07:09 +0100
commitc2b71d955c9a11f191a582e8d5a2648a951ab83d (patch)
tree80f7fa2adaad001e0d4d57b4931f111569e29cf0
parentc5ee95a49e51565a3cd9ecf3769488e19db0ec2b (diff)
parent1509dd1358561a2fb899e6a375c48c1030e2bb5f (diff)
downloadnextcloud-server-c2b71d955c9a11f191a582e8d5a2648a951ab83d.tar.gz
nextcloud-server-c2b71d955c9a11f191a582e8d5a2648a951ab83d.zip
Merge pull request #12610 from owncloud/remove_php_version_check
[encryption] remove check for PHP version
-rw-r--r--apps/files_encryption/hooks/hooks.php2
-rw-r--r--apps/files_encryption/lib/helper.php6
2 files changed, 2 insertions, 6 deletions
diff --git a/apps/files_encryption/hooks/hooks.php b/apps/files_encryption/hooks/hooks.php
index d40e6b3d124..a6b7555b376 100644
--- a/apps/files_encryption/hooks/hooks.php
+++ b/apps/files_encryption/hooks/hooks.php
@@ -66,7 +66,7 @@ class Hooks {
//check if all requirements are met
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 OpenSSL together with the PHP extension is enabled and configured properly. For now, the encryption app has been disabled.');
+ $hint = $l->t('Please make sure that OpenSSL together with the PHP extension is enabled and configured properly. For now, the encryption app has been disabled.');
\OC_App::disable('files_encryption');
\OCP\Util::writeLog('Encryption library', $error_msg . ' ' . $hint, \OCP\Util::ERROR);
\OCP\Template::printErrorPage($error_msg, $hint);
diff --git a/apps/files_encryption/lib/helper.php b/apps/files_encryption/lib/helper.php
index 5ea2d0fc072..34deb112798 100644
--- a/apps/files_encryption/lib/helper.php
+++ b/apps/files_encryption/lib/helper.php
@@ -392,14 +392,10 @@ class Helper {
* @return bool true if requirements are met
*/
public static function checkRequirements() {
- $result = true;
//openssl extension needs to be loaded
- $result &= extension_loaded("openssl");
- // we need php >= 5.3.3
- $result &= version_compare(phpversion(), '5.3.3', '>=');
+ return extension_loaded("openssl");
- return (bool) $result;
}
/**