diff --git a/modules/mod_articles_news/helper.php b/modules/mod_articles_news/helper.php index ce48a0274e335..5e3fb2167fd59 100644 --- a/modules/mod_articles_news/helper.php +++ b/modules/mod_articles_news/helper.php @@ -34,13 +34,12 @@ abstract class ModArticlesNewsHelper */ public static function getList(&$params) { - $app = JFactory::getApplication(); - // Get an instance of the generic articles model $model = JModelLegacy::getInstance('Articles', 'ContentModel', array('ignore_request' => true)); // Set application parameters in model - $appParams = JFactory::getApplication()->getParams(); + $app = JFactory::getApplication(); + $appParams = $app->getParams(); $model->setState('params', $appParams); // Set the filters based on the module params