Merge pull request #6132 from owncloud/encryption-version-bump

Adjust files_encryption requirements to the new core requirement (PHP 5.3.8)
This commit is contained in:
Thomas Müller 2013-11-29 15:20:54 -08:00
commit c2b11cae83
1 changed files with 1 additions and 8 deletions

View File

@ -370,14 +370,7 @@ class Helper {
* @return bool true if requirements are met * @return bool true if requirements are met
*/ */
public static function checkRequirements() { public static function checkRequirements() {
$result = true; return extension_loaded('openssl');
//openssl extension needs to be loaded
$result &= extension_loaded("openssl");
// we need php >= 5.3.3
$result &= version_compare(phpversion(), '5.3.3', '>=');
return (bool) $result;
} }
/** /**