Skip to content

Commit

Permalink
Ignore request in model
Browse files Browse the repository at this point in the history
  • Loading branch information
laoneo committed Mar 9, 2018
1 parent 6d9f9f9 commit 24850bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/mod_articles_latest/mod_articles_latest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
use Joomla\CMS\Helper\ModuleHelper;
use Joomla\Module\ArticlesLatest\Site\Helper\ArticlesLatestHelper;

$list = ArticlesLatestHelper::getList($params, $app->bootComponent('com_content')->createMVCFactory($app)->createModel('Articles', 'Site'));
$model = $app->bootComponent('com_content')->createMVCFactory($app)->createModel('Articles', 'Site', ['ignore_request' => true]);
$list = ArticlesLatestHelper::getList($params, $model);

require ModuleHelper::getLayoutPath('mod_articles_latest', $params->get('layout', 'default'));

0 comments on commit 24850bc

Please sign in to comment.