Skip to content

Commit

Permalink
Small modification
Browse files Browse the repository at this point in the history
Prevent to use the same template name with the bbm template tool (mainly
use to get view name).
  • Loading branch information
cclaerhout committed Apr 25, 2015
1 parent 1f333c0 commit 5938afd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion upload/library/BBM/BbCode/Formatter/Base.php
Expand Up @@ -2667,7 +2667,11 @@ public function bbmGetToolTemplate()
{
if(!$this->bbmToolTemplate)
{
$this->bbmToolTemplate = $this->getView()->createOwnTemplateObject();
$view = $this->getView();
$params = $view->getParams();
$params['bbm_templateSource'] = $view->getTemplateName();
$this->bbmToolTemplate = $view->createTemplateObject('__bbm_tool_template', $params);
//$this->bbmToolTemplate = $this->getView()->createOwnTemplateObject();
}
return $this->bbmToolTemplate;
}
Expand Down

0 comments on commit 5938afd

Please sign in to comment.