diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2016-08-15 21:55:09 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2016-08-15 21:55:09 +0200 |
commit | 6c6338b81072ba58b662d2f03cab6cfdbfdf4a18 (patch) | |
tree | 7e5bf139a601f03dc7c458d7ef84881e63b5ee20 /settings/Controller/CheckSetupController.php | |
parent | 7ffb7b0d846241c8cc6b45a3c85b2374c6d026ae (diff) | |
parent | 2061d40ba292d2b906132dfcd261e4c631d9854b (diff) | |
download | nextcloud-server-6c6338b81072ba58b662d2f03cab6cfdbfdf4a18.tar.gz nextcloud-server-6c6338b81072ba58b662d2f03cab6cfdbfdf4a18.zip |
Merge branch 'master' into implement_712
Diffstat (limited to 'settings/Controller/CheckSetupController.php')
-rw-r--r-- | settings/Controller/CheckSetupController.php | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/settings/Controller/CheckSetupController.php b/settings/Controller/CheckSetupController.php index 0441c507f34..3881952872f 100644 --- a/settings/Controller/CheckSetupController.php +++ b/settings/Controller/CheckSetupController.php @@ -234,20 +234,26 @@ class CheckSetupController extends Controller { } /** + * Whether the version is outdated + * + * @return bool + */ + protected function isPhpOutdated() { + if (version_compare(PHP_VERSION, '5.5.0') === -1) { + return true; + } + + return false; + } + + /** * Whether the php version is still supported (at time of release) * according to: https://secure.php.net/supported-versions.php * * @return array */ private function isPhpSupported() { - $eol = false; - - //PHP 5.4 is EOL on 14 Sep 2015 - if (version_compare(PHP_VERSION, '5.5.0') === -1) { - $eol = true; - } - - return ['eol' => $eol, 'version' => PHP_VERSION]; + return ['eol' => $this->isPhpOutdated(), 'version' => PHP_VERSION]; } /** |