Skip to content
This repository has been archived by the owner on Aug 12, 2019. It is now read-only.

Commit

Permalink
TemplateControlTrait: fixed template initialization in beforeRender
Browse files Browse the repository at this point in the history
  • Loading branch information
hrach committed Aug 22, 2015
1 parent b1386bf commit bee0bc5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Controls/Fragments/TemplateControlTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,9 @@ public function render()
*/
public function toString()
{
$template = $this->getTemplate();
$this->beforeRender();
return (string) $this->getTemplate();
return (string) $template;
}


Expand Down

0 comments on commit bee0bc5

Please sign in to comment.