From 84e26734db48bc3c9c3bb453c8a90122c1fd3f24 Mon Sep 17 00:00:00 2001 From: wangchunsheng Date: Wed, 1 Dec 2010 06:57:24 +0000 Subject: [PATCH] * adjust the code. --- framework/control.class.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/framework/control.class.php b/framework/control.class.php index 2a8e678241..54b59a1baa 100755 --- a/framework/control.class.php +++ b/framework/control.class.php @@ -391,10 +391,7 @@ class control extract((array)$this->view); ob_start(); include $viewFile; - if(isset($hookFiles)) - { - foreach($hookFiles as $hookFile) include $hookFile; - } + if(isset($hookFiles)) foreach($hookFiles as $hookFile) include $hookFile; $this->output .= ob_get_contents(); ob_end_clean();