Check $this->_template before detecting the template, fixes #19
This commit is contained in:
parent
e9c37fd6a0
commit
1c73ca8b0b
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue