diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2020-02-23 18:00:47 +0100 |
---|---|---|
committer | Daniel Kesselberg <mail@danielkesselberg.de> | 2020-02-24 20:14:13 +0100 |
commit | f228d73b38e5f71566c8dc055f4d322c0dc22514 (patch) | |
tree | 618dd1cfb83a92b4a9823112f7c36241e52d0507 /core/js/setupchecks.js | |
parent | baf386b5d8c8f96993b5c61457281f1921c11ac0 (diff) | |
download | nextcloud-server-f228d73b38e5f71566c8dc055f4d322c0dc22514.tar.gz nextcloud-server-f228d73b38e5f71566c8dc055f4d322c0dc22514.zip |
Update check for outdated php version.
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'core/js/setupchecks.js')
-rw-r--r-- | core/js/setupchecks.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/core/js/setupchecks.js b/core/js/setupchecks.js index f9829954f16..794bf36a8ff 100644 --- a/core/js/setupchecks.js +++ b/core/js/setupchecks.js @@ -263,17 +263,17 @@ type: OC.SetupChecks.MESSAGE_TYPE_WARNING }); } - if(data.phpSupported && data.phpSupported.eol) { + if (data.phpSupported && data.phpSupported.eol) { messages.push({ - msg: t('core', 'You are currently running PHP {version}. Upgrade your PHP version to take advantage of <a target="_blank" rel="noreferrer noopener" href="{phpLink}">performance and security updates provided by the PHP Group</a> as soon as your distribution supports it.', {version: data.phpSupported.version, phpLink: 'https://secure.php.net/supported-versions.php'}), + msg: t('core', 'You are currently running PHP {version}. Upgrade your PHP version to take advantage of <a target="_blank" rel="noreferrer noopener" href="{phpLink}">performance and security updates provided by the PHP Group</a> as soon as your distribution supports it.', { version: data.phpSupported.version, phpLink: 'https://secure.php.net/supported-versions.php' }), type: OC.SetupChecks.MESSAGE_TYPE_INFO - }); + }) } - if(data.phpSupported && data.phpSupported.version.substr(0, 3) === '5.6') { + if (data.phpSupported && data.phpSupported.version.substr(0, 3) === '7.2') { messages.push({ - msg: t('core', 'You are currently running PHP 5.6. The current major version of Nextcloud is the last that is supported on PHP 5.6. It is recommended to upgrade the PHP version to 7.0+ to be able to upgrade to Nextcloud 14.'), + msg: t('core', 'Nextcloud 19 is the last release supporting PHP 7.2. Nextcloud 20 requires at least PHP 7.3.'), type: OC.SetupChecks.MESSAGE_TYPE_INFO - }); + }) } if(!data.forwardedForHeadersWorking) { messages.push({ |