Skip to content

Commit

Permalink
add check to getTemplate to check for content block base class
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Mc Cormack committed Feb 13, 2018
1 parent 5e113fe commit 4cf2673
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Model/ContentBlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ public function getTemplateHolder()

public function getTemplate()
{
return $this->renderWith('Block/'.$this->ClassName);
if($this->ClassName != ContentBlock::class) {
return $this->renderWith('Block/'.$this->ClassName);
}
}

public function getAction()
Expand Down

0 comments on commit 4cf2673

Please sign in to comment.