diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2024-01-09 18:03:32 +0100 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2024-01-18 09:54:28 +0100 |
commit | 44b8cf650cd1847d25c497ab2ff8c40c4fa7f33a (patch) | |
tree | 5c680024f8ca2d7cafe9043a70b70cbba299df18 /apps | |
parent | e35fa737e4eff2bd2de58b7ac10172df2c77b7c5 (diff) | |
download | nextcloud-server-44b8cf650cd1847d25c497ab2ff8c40c4fa7f33a.tar.gz nextcloud-server-44b8cf650cd1847d25c497ab2ff8c40c4fa7f33a.zip |
Use highlight rich objecttype to render links in CodeIntegrity setup check
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/settings/lib/SetupChecks/CodeIntegrity.php | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/apps/settings/lib/SetupChecks/CodeIntegrity.php b/apps/settings/lib/SetupChecks/CodeIntegrity.php index 234e1fbf058..f5882be888f 100644 --- a/apps/settings/lib/SetupChecks/CodeIntegrity.php +++ b/apps/settings/lib/SetupChecks/CodeIntegrity.php @@ -55,8 +55,23 @@ class CodeIntegrity implements ISetupCheck { } else { // FIXME: If setup check can link to settings pages this should link to /settings/integrity/failed and /settings/integrity/rescan?requesttoken=TOKEN return SetupResult::error( - $this->l10n->t('Some files have not passed the integrity check.'), - $this->urlGenerator->linkToDocs('admin-code-integrity') + $this->l10n->t('Some files have not passed the integrity check. {link1} {link2}'), + $this->urlGenerator->linkToDocs('admin-code-integrity'), + [ + 'link1' => [ + 'type' => 'highlight', + 'id' => 'getFailedIntegrityCheckFiles', + 'name' => 'List of invalid files…', + 'link' => $this->urlGenerator->linkToRoute('settings.CheckSetup.getFailedIntegrityCheckFiles'), + ], + 'link2' => [ + 'type' => 'highlight', + 'id' => 'rescanFailedIntegrityCheck', + 'name' => 'Rescan…', + //, ['requesttoken' => '']? + 'link' => $this->urlGenerator->linkToRoute('settings.CheckSetup.rescanFailedIntegrityCheck'), + ], + ], ); } } |