diff --git a/components/com_content/models/articles.php b/components/com_content/models/articles.php index beaf681d3ec26..196234ec8f94f 100644 --- a/components/com_content/models/articles.php +++ b/components/com_content/models/articles.php @@ -549,6 +549,11 @@ protected function getListQuery() // Add the list ordering clause. $query->order($this->getState('list.ordering', 'a.ordering') . ' ' . $this->getState('list.direction', 'ASC')); + // Process the content plugins that might modify the query + JPluginHelper::importPlugin('content'); + $dispatcher = JEventDispatcher::getInstance(); + $dispatcher->trigger('onContentGetQuery', array ($this->context, &$query, JFactory::getApplication()->scope, $this->getState())); + return $query; }