Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Taken out some redundant comprobations...

  • Loading branch information...
commit 5f7f09efaecdc78b63bbbe8763c8e13d98f7a907 1 parent e3b7da6
Juan Manuel Pereyra authored March 14, 2012

Showing 1 changed file with 3 additions and 10 deletions. Show diff stats Hide diff stats

  1. 13  system/core/classes/view.php
13  system/core/classes/view.php
@@ -84,16 +84,11 @@ public static function defaultLayoutRender(View $inView, $title, $toScreen=false
84 84
 						"javaScript"=> $javaScript,
85 85
 						"css"		=> $css);
86 86
 		if (is_array($data)) {
87  
-			foreach ($data as $key => $val) {
  87
+			foreach ($data as $key => $val) 
88 88
 				$inData[$key] = $val;
89  
-			}
90 89
 		}
91 90
 		$view->setData($inData);
92  
-		if ($toScreen)
93  
-			$view->render($toScreen, $compress);
94  
-		else
95  
-			return $view->render(false, $compress);
96  
-
  91
+		$view->render($toScreen, $compress);
97 92
 	}
98 93
 
99 94
 	private static function compress(&$html) {
@@ -103,6 +98,4 @@ private static function compress(&$html) {
103 98
 		return $html;
104 99
 	}
105 100
 
106  
-}
107  
-
108  
-?>
  101
+}

0 notes on commit 5f7f09e

Please sign in to comment.
Something went wrong with that request. Please try again.