From edae391593458ab3ce59040c6c616dc6ffb20f34 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 8 Aug 2011 10:49:15 -0500 Subject: [PATCH] Refactor the view class. --- system/view.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/system/view.php b/system/view.php index 7f3193f5..b324dd95 100644 --- a/system/view.php +++ b/system/view.php @@ -115,7 +115,10 @@ class View { $path = ($module == 'application') ? VIEW_PATH : MODULE_PATH.$module.'/views/'; - if ($module != 'application') $view = substr($view, strpos($view, ':') + 2); + if ($module != 'application') + { + $view = substr($view, strpos($view, ':') + 2); + } return array($module, $path, $view); }