From 8598f30300312e7b0da23eca3f071e7a3623bfe2 Mon Sep 17 00:00:00 2001 From: Arkadiy Date: Tue, 14 Oct 2014 00:04:08 +0700 Subject: [PATCH] Add trigger to com_content category model --- components/com_content/models/category.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/components/com_content/models/category.php b/components/com_content/models/category.php index 565ea128c21fa..0ac8f39a903e6 100644 --- a/components/com_content/models/category.php +++ b/components/com_content/models/category.php @@ -238,6 +238,12 @@ function getItems() $model->setState('filter.subcategories', $this->getState('filter.subcategories')); $model->setState('filter.max_category_levels', $this->getState('filter.max_category_levels')); $model->setState('list.links', $this->getState('list.links')); + + $dispatcher = JEventDispatcher::getInstance(); + // Include the content plugins for the change of category state event + JPluginHelper::importPlugin('content'); + // Trigger the onCategoryChangeState event + $dispatcher->trigger('onGetContentItems', array(&$model)); if ($limit >= 0) {