Skip to content

Commit

Permalink
use $app instead JFactory::getApplication()
Browse files Browse the repository at this point in the history
  • Loading branch information
shur committed Jan 20, 2016
1 parent 5d4a0ae commit 695f4d4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions modules/mod_articles_news/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 695f4d4

Please sign in to comment.