From bbc8b8f954eb04c531476ee79197d0a8c2258443 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Fri, 8 Jul 2011 06:37:50 -0700 Subject: [PATCH] Refactoring View class. --- system/view.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/system/view.php b/system/view.php index 7ecb7054..c1016f9d 100644 --- a/system/view.php +++ b/system/view.php @@ -78,14 +78,7 @@ class View { // // Otherwise, a white screen of death will be shown if an exception occurs // while rendering the view. - try - { - include $path; - } - catch (\Exception $e) - { - Error::handle($e); - } + try { include $path; } catch (\Exception $e) { Error::handle($e); } return ob_get_clean(); }