aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSimon L <szaimen@e.mail.de>2024-05-15 16:03:52 +0200
committerGitHub <noreply@github.com>2024-05-15 16:03:52 +0200
commitbc013ef5e77974dcad8d21279a347e6bd782d98e (patch)
treeb83339e673decb6086d56f80acc3bdf8af23d4a5 /lib
parent0ad77fa93755f3294631c3d021d7ddab83a9dcdf (diff)
parentcb646b2b8b5fb17a3ae7a635dd7130397e2a7685 (diff)
downloadnextcloud-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.php2
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();