From 6caad53ade8e737cca316265a3beef09b3f7e1ae Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Wed, 25 Apr 2012 14:52:53 +0400 Subject: [PATCH] Removed unnecessary markup from error views --- framework/views/error.php | 14 ++++++-------- framework/views/exception.php | 34 ++++++++++++++++------------------ 2 files changed, 22 insertions(+), 26 deletions(-) diff --git a/framework/views/error.php b/framework/views/error.php index 9be8844..dbbc848 100644 --- a/framework/views/error.php +++ b/framework/views/error.php @@ -8,11 +8,10 @@ $owner = $this->owner; - - <?php echo get_class($exception); ?> + + <?php echo get_class($exception)?> - -

+

htmlEncode($exception->getMessage()))?>

The above error occurred while the Web server was processing your request. @@ -61,8 +59,8 @@ $owner = $this->owner; Please contact us if you think this is a server error. Thank you.

- - versionInfo : ''; ?> + + versionInfo : ''?>
\ No newline at end of file diff --git a/framework/views/exception.php b/framework/views/exception.php index 3f258f5..356fd3b 100644 --- a/framework/views/exception.php +++ b/framework/views/exception.php @@ -8,10 +8,9 @@ $owner = $this->owner; - - <?php echo get_class($exception); ?> -
-

+

htmlEncode($exception->getMessage()))?> @@ -170,26 +168,25 @@ $owner = $this->owner;

- htmlEncode($exception->getFile()) . '(' . $exception->getLine() . ')'; ?> + htmlEncode($exception->getFile()) . '(' . $exception->getLine() . ')'?>

- renderSourceCode($exception->getFile(), $exception->getLine(), $owner->maxSourceLines); ?> + renderSourceCode($exception->getFile(), $exception->getLine(), $owner->maxSourceLines)?>
- +

Stack Trace

- renderTrace($exception->getTrace()); ?> + renderTrace($exception->getTrace())?>
- +
- - versionInfo : ''; ?> + + versionInfo : ''?>
-