Created
April 2, 2011 17:33
-
-
Save shadowhand/899690 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/classes/kohana/kostache.php b/classes/kohana/kostache.php | |
index 6895c87..1c90a7b 100644 | |
--- a/classes/kohana/kostache.php | |
+++ b/classes/kohana/kostache.php | |
@@ -23,9 +23,9 @@ abstract class Kohana_Kostache { | |
* @return Kostache | |
* @throws Kohana_Exception if the view class does not exist | |
*/ | |
- public static function factory($template, array $partials = NULL) | |
+ public static function factory($path, array $partials = NULL) | |
{ | |
- $class = 'View_'.str_replace('/', '_', $template); | |
+ $class = 'View_'.str_replace('/', '_', $path); | |
if ( ! class_exists($class)) | |
{ | |
@@ -34,7 +34,7 @@ abstract class Kohana_Kostache { | |
)); | |
} | |
- return new $class($template, $partials); | |
+ return new $class(NULL, $partials); | |
} | |
/** |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment