diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2015-08-18 14:42:57 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2015-08-18 14:42:57 +0200 |
commit | 8eefc5c4e1bc01d73e59561f0e61456cf3245a47 (patch) | |
tree | 940ea5bb518f198b73bfa6cf59dc45bfc88b7fde /core/js/setupchecks.js | |
parent | 7b0f43efb6bfbf348113d8da2cfb71caa5d90cac (diff) | |
download | nextcloud-server-8eefc5c4e1bc01d73e59561f0e61456cf3245a47.tar.gz nextcloud-server-8eefc5c4e1bc01d73e59561f0e61456cf3245a47.zip |
Move remaining setupchecks to new fomat
Diffstat (limited to 'core/js/setupchecks.js')
-rw-r--r-- | core/js/setupchecks.js | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/core/js/setupchecks.js b/core/js/setupchecks.js index 6e23b58f001..2e21c6ad725 100644 --- a/core/js/setupchecks.js +++ b/core/js/setupchecks.js @@ -87,14 +87,16 @@ }); } if(data.phpSupported && data.phpSupported.eol) { - messages.push( - t('core', 'Your PHP version ({version}) is no longer <a href="{phpLink}">supported by PHP</a>. We encourage you to upgrade your PHP version to take advantage of performance and security updates provided by PHP.', {version: data.phpSupported.version, phpLink: 'https://secure.php.net/supported-versions.php'}) - ); + messages.push({ + msg: t('core', 'Your PHP version ({version}) is no longer <a href="{phpLink}">supported by PHP</a>. We encourage you to upgrade your PHP version to take advantage of performance and security updates provided by PHP.', {version: data.phpSupported.version, phpLink: 'https://secure.php.net/supported-versions.php'}), + type: OC.SetupChecks.MESSAGE_TYPE_INFO + }); } if(!data.forwardedForHeadersWorking) { - messages.push( - t('core', 'The reverse proxy headers configuration is incorrect, or you are accessing ownCloud from a trusted proxy. If you are not accessing ownCloud from a trusted proxy, this is a security issue and can allow an attacker to spoof their IP address as visible to ownCloud. Further information can be found in our <a href="{docLink}">documentation</a>.', {docLink: data.reverseProxyDocs}) - ); + messages.push({ + msg: t('core', 'The reverse proxy headers configuration is incorrect, or you are accessing ownCloud from a trusted proxy. If you are not accessing ownCloud from a trusted proxy, this is a security issue and can allow an attacker to spoof their IP address as visible to ownCloud. Further information can be found in our <a href="{docLink}">documentation</a>.', {docLink: data.reverseProxyDocs}), + type: OC.SetupChecks.MESSAGE_TYPE_WARNING + }); } } else { messages.push({ |