summaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
authorszaimen <szaimen@e.mail.de>2022-07-13 20:28:00 +0200
committerszaimen <szaimen@e.mail.de>2022-07-13 22:16:42 +0200
commitc1b88f927e0b1ceb8d5af2365c70106d77b68353 (patch)
tree04058a858eed08bc4fef00ff88586c4f7a3c6084 /core/js
parent9dbcf0560fa2719ceb507e1b3a2bf6074167f8c6 (diff)
downloadnextcloud-server-c1b88f927e0b1ceb8d5af2365c70106d77b68353.tar.gz
nextcloud-server-c1b88f927e0b1ceb8d5af2365c70106d77b68353.zip
add a link to system requirements for new 64bit setup check
Signed-off-by: szaimen <szaimen@e.mail.de> Co-Authored-By: MichaIng <micha@dietpi.com>
Diffstat (limited to 'core/js')
-rw-r--r--core/js/setupchecks.js4
-rw-r--r--core/js/tests/specs/setupchecksSpec.js2
2 files changed, 4 insertions, 2 deletions
diff --git a/core/js/setupchecks.js b/core/js/setupchecks.js
index ec9ffbe604e..320c2bea9fb 100644
--- a/core/js/setupchecks.js
+++ b/core/js/setupchecks.js
@@ -425,7 +425,9 @@
messages.push({
msg: t(
'core',
- 'It seems like you are running a 32bit PHP version. Nextcloud needs 64bit to run well. Please upgrade your OS and PHP to 64bit!'
+ 'It seems like you are running a 32bit PHP version. Nextcloud needs 64bit to run well. Please upgrade your OS and PHP to 64bit! For further details read {linkstart}the documentation page about this ↗{linkend}.'
+ .replace('{linkstart}', '<a target="_blank" rel="noreferrer noopener" class="external" href="' + OC.theme.docPlaceholderUrl.replace('PLACEHOLDER', 'admin-system-requirements') + '">')
+ .replace('{linkend}', '</a>'),
),
type: OC.SetupChecks.MESSAGE_TYPE_WARNING
})
diff --git a/core/js/tests/specs/setupchecksSpec.js b/core/js/tests/specs/setupchecksSpec.js
index c217ea2f35a..2be33a7b394 100644
--- a/core/js/tests/specs/setupchecksSpec.js
+++ b/core/js/tests/specs/setupchecksSpec.js
@@ -1403,7 +1403,7 @@ describe('OC.SetupChecks tests', function() {
async.done(function( data, s, x ){
expect(data).toEqual([{
- msg: 'It seems like you are running a 32bit PHP version. Nextcloud needs 64bit to run well. Please upgrade your OS and PHP to 64bit!',
+ msg: 'It seems like you are running a 32bit PHP version. Nextcloud needs 64bit to run well. Please upgrade your OS and PHP to 64bit! For further details read <a href="https://docs.example.org/admin-system-requirements" class="external" rel="noreferrer noopener">the documentation page about this ↗</a>.',
type: OC.SetupChecks.MESSAGE_TYPE_WARNING
}]);
done();