diff options
author | MichaIng <micha@dietpi.com> | 2022-02-18 16:36:43 +0100 |
---|---|---|
committer | Simon L. (Rebase PR Action) <szaimen@e.mail.de> | 2022-03-03 23:00:07 +0000 |
commit | 5ac91f1cb8fc8a2ddca1336c976a39385dd8c4cd (patch) | |
tree | a7f9f13a3608d9b91995d49be157ae590c584a7d /core/js/setupchecks.js | |
parent | 787f4f02b361eec1eddf08709905ed4b5d250a48 (diff) | |
download | nextcloud-server-5ac91f1cb8fc8a2ddca1336c976a39385dd8c4cd.tar.gz nextcloud-server-5ac91f1cb8fc8a2ddca1336c976a39385dd8c4cd.zip |
Add Nextcloud docs link to OPcache recommends
A link to the Nextcloud documentation is currently only shown when the OPcache module is not loaded at all. This commit moves the link to the generic text above the individual recommendations list.
Additionally remove the obsolete phpOpcacheDocumentation entry from test data arrays, which is not passed anymore by the backend.
Signed-off-by: MichaIng <micha@dietpi.com>
Diffstat (limited to 'core/js/setupchecks.js')
-rw-r--r-- | core/js/setupchecks.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/core/js/setupchecks.js b/core/js/setupchecks.js index fdeed4897d0..95d8c6cbdc2 100644 --- a/core/js/setupchecks.js +++ b/core/js/setupchecks.js @@ -342,10 +342,9 @@ listOfOPcacheRecommendations += "<li>" + element + "</li>"; }); messages.push({ - msg: t( - 'core', - 'The PHP OPcache module is not properly configured:' - ) + "<ul>" + listOfOPcacheRecommendations + "</ul>", + msg: t('core', 'The PHP OPcache module is not properly configured. See the {linkstart}documentation ↗{linkend} for more information.') + .replace('{linkstart}', '<a target="_blank" rel="noreferrer noopener" class="external" href="' + OC.theme.docPlaceholderUrl.replace('PLACEHOLDER', 'admin-php-opcache') + '">') + .replace('{linkend}', '</a>') + '<ul>' + listOfOPcacheRecommendations + '</ul>', type: OC.SetupChecks.MESSAGE_TYPE_INFO }); } |