Fixed gh-237 passing th 4th value as zero to insure the onContentPrepare method signature match.

This commit is contained in:
2018-03-01 16:49:04 +02:00
parent 2724274896
commit 593a4c7c89
9 changed files with 9 additions and 9 deletions

View File

@ -124,7 +124,7 @@ class ComponentbuilderModelCompiler extends JModelList
$_copyright = new stdClass();
$_copyright->text =& $item->copyright; // value must be in text
// Since all values are now in text (Joomla Limitation), we also add the field name (copyright) to context
$this->_dispatcher->trigger("onContentPrepare",array('com_componentbuilder.compiler.copyright',&$_copyright,&$this->params));
$this->_dispatcher->trigger("onContentPrepare", array('com_componentbuilder.compiler.copyright', &$_copyright, &$this->params, 0));
// Checking if copyright has uikit components that must be loaded.
$this->uikitComp = ComponentbuilderHelper::getUikitComp($item->copyright,$this->uikitComp);
}