Skip to content

Commit

Permalink
Fix issue #61 - Custom templates were never used in FrontendFilter mo…
Browse files Browse the repository at this point in the history
…dule and content elements.
  • Loading branch information
discordier committed Mar 7, 2013
1 parent d74bfe6 commit 2734081
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Expand Up @@ -62,7 +62,10 @@ protected function compile()
$arrFilter = $objFilter->getMetaModelFrontendFilter($this);

// get template
$objTemplate = new FrontendTemplate(($this->metamodel_fef_template ? $this->metamodel_fef_template : 'mm_filter_default'));
if ($this->metamodel_fef_template)
{
$this->Template = new FrontendTemplate($this->metamodel_fef_template);
}
$this->Template->setData($arrFilter);
$this->Template->submit = $arrFilter['submit'];
}
Expand Down
Expand Up @@ -64,7 +64,10 @@ protected function compile()
$arrFilter = $objFilter->getMetaModelFrontendFilter($this);

// get template
$objTemplate = new FrontendTemplate(($this->metamodel_fef_template ? $this->metamodel_fef_template : 'mm_filter_default'));
if ($this->metamodel_fef_template)
{
$this->Template = new FrontendTemplate($this->metamodel_fef_template);
}
$this->Template->setData($arrFilter);
$this->Template->submit = $arrFilter['submit'];
}
Expand Down

0 comments on commit 2734081

Please sign in to comment.