From 695f4d49b41eb7c757fe701bc3cb56380b5af496 Mon Sep 17 00:00:00 2001 From: Alex B Date: Wed, 20 Jan 2016 12:59:40 +0300 Subject: [PATCH] use $app instead JFactory::getApplication() --- modules/mod_articles_news/helper.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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