diff options
author | Simon L. <szaimen@e.mail.de> | 2024-04-26 15:52:11 +0200 |
---|---|---|
committer | Simon L <szaimen@e.mail.de> | 2024-05-14 15:37:38 +0200 |
commit | 620d10c842b2fb06f750e9cd2dca29b5c9227b26 (patch) | |
tree | 66f664c71a189e2fae2da9b5dff34df3f2ef804d /lib/private/legacy | |
parent | 177b13fd815aa8aab17e9037c09cc091bbc62aea (diff) | |
download | nextcloud-server-620d10c842b2fb06f750e9cd2dca29b5c9227b26.tar.gz nextcloud-server-620d10c842b2fb06f750e9cd2dca29b5c9227b26.zip |
feat(exception-template): allow to link to specific documentation for how to retreive server log
Signed-off-by: Simon L <szaimen@e.mail.de>
Diffstat (limited to 'lib/private/legacy')
-rw-r--r-- | lib/private/legacy/OC_Template.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/legacy/OC_Template.php b/lib/private/legacy/OC_Template.php index 545d5a73a63..ad9421913d3 100644 --- a/lib/private/legacy/OC_Template.php +++ b/lib/private/legacy/OC_Template.php @@ -306,6 +306,7 @@ class OC_Template extends \OC\Template\Base { http_response_code($statusCode); try { $debug = \OC::$server->getSystemConfig()->getValue('debug', false); + $serverLogsDocumentation = \OC::$server->getSystemConfig()->getValue('documentation_url.server_logs', ''); $request = \OC::$server->getRequest(); $content = new \OC_Template('', 'exception', 'error', false); $content->assign('errorClass', get_class($exception)); @@ -315,6 +316,7 @@ class OC_Template extends \OC\Template\Base { $content->assign('line', $exception->getLine()); $content->assign('exception', $exception); $content->assign('debugMode', $debug); + $content->assign('serverLogsDocumentation', $serverLogsDocumentation); $content->assign('remoteAddr', $request->getRemoteAddress()); $content->assign('requestID', $request->getId()); $content->printPage(); |