diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2020-03-10 20:10:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-10 20:10:54 +0100 |
commit | c8a360cd7a02703547102380296fe4cbb414c5d7 (patch) | |
tree | 6ada5103e7ef3512ee20a499c1dcabfa714f6037 /core/js | |
parent | 0a6ba15bb29ae8e4f765e300c32b9609efc0e08f (diff) | |
parent | f228d73b38e5f71566c8dc055f4d322c0dc22514 (diff) | |
download | nextcloud-server-c8a360cd7a02703547102380296fe4cbb414c5d7.tar.gz nextcloud-server-c8a360cd7a02703547102380296fe4cbb414c5d7.zip |
Merge pull request #19580 from nextcloud/debt/noid/outdated-check
Update check for outdated php version.
Diffstat (limited to 'core/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 95fb4f6b213..33ba31f049f 100644 --- a/core/js/setupchecks.js +++ b/core/js/setupchecks.js @@ -264,17 +264,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({ |