From 8ec4404e8db6b9e7e25615957508be24a88bcc6b Mon Sep 17 00:00:00 2001 From: andrii-pukhalevych Date: Sun, 25 Jun 2023 21:35:04 +0300 Subject: [PATCH] Use Debugger::trimPath() and Debugger::editorUrl() for error templates --- templates/Error/error400.php | 9 +++++---- templates/Error/error500.php | 4 +++- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/templates/Error/error400.php b/templates/Error/error400.php index 68c0e63418..9ead1656c8 100644 --- a/templates/Error/error400.php +++ b/templates/Error/error400.php @@ -25,13 +25,14 @@

params)) : ?> - SQL Query Params: - params) ?> + SQL Query Params: + params) ?> -element('auto_table_warning') ?> + element('auto_table_warning'); -$this->end(); + $this->end(); endif; ?>

diff --git a/templates/Error/error500.php b/templates/Error/error500.php index 0295c760d8..4f08488e90 100644 --- a/templates/Error/error500.php +++ b/templates/Error/error500.php @@ -29,8 +29,10 @@ params) ?> + getFile() ?> + getLine() ?> Error in: - getFile()), $error->getLine()) ?> + Html->link(sprintf('%s, line %s', Debugger::trimPath($file), $line), Debugger::editorUrl($file, $line)); ?> element('auto_table_warning');