Skip to content

Commit

Permalink
Merge pull request joomla#8947 from shur/patch-11
Browse files Browse the repository at this point in the history
use $app instead JFactory::getApplication()
  • Loading branch information
wilsonge committed Jan 20, 2016
2 parents 5d4a0ae + 695f4d4 commit 2ffbb4f
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 2ffbb4f

Please sign in to comment.