Skip to content

Commit

Permalink
Multilingual: correcting alternates when associated menu items are co…
Browse files Browse the repository at this point in the history
…m_users items (#13152)

* Multilingual: correcting alternates when associated menu items are
com_users items

* simplification

* Update languagefilter.php

oops
  • Loading branch information
infograf768 authored and rdeutz committed Dec 11, 2016
1 parent 29aaddc commit 8e20e66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/system/languagefilter/languagefilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +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]))):

$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 8e20e66

Please sign in to comment.