hopefully last bug of this series

This commit is contained in:
Jeremy Bush 2010-08-09 09:07:39 -05:00
parent da27e50cb4
commit 5bba54e57f

View file

@ -131,10 +131,10 @@ class Kohana_Kostache extends Mustache
$view_location = $this->_template;
}
$template = Kohana::find_file('templates', $view_location, 'mustache');
$view_location = Kohana::find_file('templates', $view_location, 'mustache');
if ($template)
$this->_template = file_get_contents($template);
if ($view_location)
$this->_template = file_get_contents($view_location);
else
throw new Kohana_Exception('Template file not found: templates/'.$view_location);