Skip to content

Commit

Permalink
fix rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
tomlev committed Mar 10, 2019
1 parent c839651 commit d963ff2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Bixev/LightHtmlTemplate/Tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -730,6 +730,9 @@ protected function pregReplace($pattern, $replacement, $content, &$count = 0)
*/
public function render($bloc_path = '')
{
if (!$this->_isInit) {
$this->pB();
}
$bloc_path = ($bloc_path == '') ? $this->bloc_limit : $bloc_path;
if (!isset($this->blocs[$bloc_path])) {
throw new Exception("Bloc does not exist : " . $bloc_path);
Expand Down

0 comments on commit d963ff2

Please sign in to comment.