diff --git a/app/controllers/general.php b/app/controllers/general.php index fda8929fa6..9e01b91c80 100644 --- a/app/controllers/general.php +++ b/app/controllers/general.php @@ -561,6 +561,7 @@ App::error() ->setParam('projectName', $project->getAttribute('name')) ->setParam('projectURL', $project->getAttribute('url')) ->setParam('message', $error->getMessage()) + ->setParam('type', $type) ->setParam('code', $code) ->setParam('trace', $trace) ; diff --git a/app/views/general/error.phtml b/app/views/general/error.phtml index d5a11246f7..450dcf8973 100644 --- a/app/views/general/error.phtml +++ b/app/views/general/error.phtml @@ -1,5 +1,6 @@ getParam('development', false); +$type = $this->getParam('type', 'general_server_error'); $code = $this->getParam('code', 500); $errorID = $this->getParam('errorID', 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'); $message = $this->getParam('message', ''); @@ -13,25 +14,114 @@ $title = $this->getParam('title', '') - - - - <?php echo $title; ?> + + + + + + + + + + + + + + + + <?php echo $this->print($title, self::FILTER_ESCAPE); ?> + + +
+
+
+

Error print($code, self::FILTER_ESCAPE); ?>

+

print($message, self::FILTER_ESCAPE); ?>

+
+

Type

+

print($type, self::FILTER_ESCAPE); ?>

+
+ +

Error Trace

+ +
+
+ + + $value) : ?> + + + + -
-

Error

+ +
+
print($key, self::FILTER_ESCAPE); ?> + + +
print(var_export($value, true), self::FILTER_ESCAPE); ?>
+ +
print($value, self::FILTER_ESCAPE); ?>
+ +
+
+
+
+ + +
+
+
+ + \ No newline at end of file