Skip to content

Commit

Permalink
simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
infograf768 committed Dec 10, 2016
1 parent 54a1468 commit f8d81c4
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions plugins/system/languagefilter/languagefilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -774,15 +774,7 @@ public function onAfterDispatch()
// Heads up! "$item = $menu" here below is an assignment, *NOT* comparison
case (isset($associations[$i]) && ($item = $menu->getItem($associations[$i]))):

// Special case for com_users menu items
if (strpos($item->link, 'option=com_users'))
{
$language->link = JRoute::_('index.php?&Itemid=' . $item->id . '&lang=' . $language->sef);
}
else
{
$language->link = JRoute::_($item->link . '&Itemid=' . $item->id . '&lang=' . $language->sef);
}
$language->link = JRoute::_('index.php?&Itemid=' . $item->id . '&lang=' . $language->sef);
break;

// Too bad...
Expand Down

0 comments on commit f8d81c4

Please sign in to comment.