Check $this->_template before detecting the template, fixes #19

This commit is contained in:
Woody Gilk 2011-03-29 10:55:03 -05:00
parent e9c37fd6a0
commit 1c73ca8b0b

View file

@ -60,8 +60,16 @@ abstract class Kohana_Kostache {
{
if ( ! $template)
{
// Detect the template for this class
$template = $this->_detect_template();
if ($this->_template)
{
// Load the template defined in the view
$template = $this->_template;
}
else
{
// Detect the template for this class
$template = $this->_detect_template();
}
}
// Load the template