Skip to content

Commit

Permalink
Fix wrong context for plugin event
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonge committed Dec 2, 2015
1 parent 3f984e5 commit 1a98a82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/legacy/view/category.php
Expand Up @@ -156,7 +156,7 @@ public function commonCategoryDisplay()
$dispatcher = JEventDispatcher::getInstance();
JPluginHelper::importPlugin('content');

$dispatcher->trigger('onContentPrepare', array ('com_contact.category', &$itemElement, &$itemElement->params, 0));
$dispatcher->trigger('onContentPrepare', array ($this->extension . '.category', &$itemElement, &$itemElement->params, 0));

$results = $dispatcher->trigger('onContentAfterTitle', array($this->extension . '.category', &$itemElement, &$itemElement->core_params, 0));
$itemElement->event->afterDisplayTitle = trim(implode("\n", $results));
Expand Down

0 comments on commit 1a98a82

Please sign in to comment.