Skip to content

Commit

Permalink
Fix get layout in content associations
Browse files Browse the repository at this point in the history
  • Loading branch information
Septdir committed Apr 23, 2018
1 parent 7f78d60 commit 1712f81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/com_content/helpers/association.php
Expand Up @@ -35,7 +35,7 @@ public static function getAssociations($id = 0, $view = null, $layout = null)
{
$jinput = JFactory::getApplication()->input;
$view = $view === null ? $jinput->get('view') : $view;
$layout = $layout === null ? $jinput->get('view', '', 'string') : $view;
$layout = $layout === null ? $jinput->get('layout', '', 'string') : $layout;
$id = empty($id) ? $jinput->getInt('id') : $id;
$user = JFactory::getUser();
$groups = implode(',', $user->getAuthorisedViewLevels());
Expand Down

0 comments on commit 1712f81

Please sign in to comment.