From 3bf85e03a58e8d2bf3fe1d9d00575a0f17627bd7 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 8 Aug 2011 14:55:27 -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 c71ab356..8006f130 100644 --- a/system/view.php +++ b/system/view.php @@ -198,7 +198,10 @@ class View { // evaluate any sub-views or responses that are present. foreach ($this->data as &$data) { - if ($data instanceof View or $data instanceof Response) $data = (string) $data; + if ($data instanceof View or $data instanceof Response) + { + $data = (string) $data; + } } ob_start() and extract($this->data, EXTR_SKIP);