Permalink
Browse files

Removed too early class call

  • Loading branch information...
1 parent 857060b commit 6e07fbe66aacecf415e7ec33d1dd5ced1e13959b @dyron committed with zombor Oct 16, 2010
Showing with 0 additions and 2 deletions.
  1. +0 −2 classes/kohana/view.php
@@ -44,7 +44,6 @@ class Kohana_View {
*/
public static function factory($file = NULL, array $data = NULL)
{
- return new View($file);
// Return a raw view object if no template is specified.
if ($file === FALSE)
return new View(FALSE, $data);
@@ -172,7 +171,6 @@ public function __construct($file = NULL, array $data = NULL)
{
$this->set_filename($file);
}
-
if ( $data !== NULL)
{

0 comments on commit 6e07fbe

Please sign in to comment.