Skip to content

Commit

Permalink
Fix undefined error in view
Browse files Browse the repository at this point in the history
  • Loading branch information
parshikov committed Sep 2, 2013
1 parent 3aaf842 commit e324504
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions classes/controller/Haml/Template.php
Expand Up @@ -58,12 +58,10 @@ public function after()
{
if(substr(Kohana::VERSION, 0, 3) == '3.0')
{
$this->template->content = Haml::factory($this->request->controller.'/'.$this->request->action, $this->view_data, $this->haml_options);
$this->request->response = $this->template;
}
else
{
$this->template->content = Haml::factory($this->request->controller().'/'.$this->request->action(), $this->view_data, $this->haml_options);
$this->response->body($this->template);
}
}
Expand Down

0 comments on commit e324504

Please sign in to comment.