diff options
author | Simon L <szaimen@e.mail.de> | 2024-05-15 16:03:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-15 16:03:52 +0200 |
commit | bc013ef5e77974dcad8d21279a347e6bd782d98e (patch) | |
tree | b83339e673decb6086d56f80acc3bdf8af23d4a5 /lib | |
parent | 0ad77fa93755f3294631c3d021d7ddab83a9dcdf (diff) | |
parent | cb646b2b8b5fb17a3ae7a635dd7130397e2a7685 (diff) | |
download | nextcloud-server-bc013ef5e77974dcad8d21279a347e6bd782d98e.tar.gz nextcloud-server-bc013ef5e77974dcad8d21279a347e6bd782d98e.zip |
Merge pull request #45057 from nextcloud/enh/noid/server-log
feat(exception-template): allow to link to specific documentation for how to retreive server log
Diffstat (limited to 'lib')
-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(); |