From 620d10c842b2fb06f750e9cd2dca29b5c9227b26 Mon Sep 17 00:00:00 2001 From: "Simon L." Date: Fri, 26 Apr 2024 15:52:11 +0200 Subject: feat(exception-template): allow to link to specific documentation for how to retreive server log Signed-off-by: Simon L --- config/config.sample.php | 5 +++++ core/templates/exception.php | 3 +++ lib/private/legacy/OC_Template.php | 2 ++ 3 files changed, 10 insertions(+) diff --git a/config/config.sample.php b/config/config.sample.php index 751d6a5599b..c6fab26665d 100644 --- a/config/config.sample.php +++ b/config/config.sample.php @@ -2241,6 +2241,11 @@ $CONFIG = [ */ 'upgrade.cli-upgrade-link' => '', +/** + * Allows to modify the exception server logs documentation link in order to link to a different documentation + */ +'documentation_url.server_logs' => '', + /** * Set this Nextcloud instance to debugging mode * diff --git a/core/templates/exception.php b/core/templates/exception.php index ee35510b26f..da64633c3c9 100644 --- a/core/templates/exception.php +++ b/core/templates/exception.php @@ -25,6 +25,9 @@ function print_exception(Throwable $e, \OCP\IL10N $l): void {

t('The server was unable to complete your request.')) ?>

t('If this happens again, please send the technical details below to the server administrator.')) ?>

t('More details can be found in the server log.')) ?>

+ +

t('See this documentation how to retreive them.')) ?>

+

t('Technical details')) ?>