From d283c820daa4f42c9a83749d35125ae7dc70e9ce Mon Sep 17 00:00:00 2001 From: Khushboo Verma Date: Thu, 22 May 2025 13:34:25 +0530 Subject: [PATCH] Only load error page for development mode --- app/views/general/error.phtml | 54 ++++++++++++++++++----------------- 1 file changed, 28 insertions(+), 26 deletions(-) diff --git a/app/views/general/error.phtml b/app/views/general/error.phtml index c6457ce98f..de1c2b6541 100644 --- a/app/views/general/error.phtml +++ b/app/views/general/error.phtml @@ -479,35 +479,37 @@ switch ($type) { -
- -
Error trace
- $traceItem): ?> -
- -
file
-
print($traceItem['file']); ?>
- + +
+ +
Error trace
+ $traceItem): ?> +
+ +
file
+
print($traceItem['file']); ?>
+ - -
line
-
print($traceItem['line']); ?>
- + +
line
+
print($traceItem['line']); ?>
+ - -
function
-
print($traceItem['function']); ?>
- + +
function
+
print($traceItem['function']); ?>
+ - -
args
-
print(\var_export($traceItem['args'], true)); ?>
- -
- -
+ +
args
+
print(\var_export($traceItem['args'], true)); ?>
+ +
+ +
+