Skip to content

Commit

Permalink
removed inline control structure
Browse files Browse the repository at this point in the history
  • Loading branch information
Giuse69 committed Nov 11, 2018
1 parent 398c7a7 commit 5fe9ea6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/mod_languages/helper.php
Expand Up @@ -154,14 +154,18 @@ public static function getList(&$params)
$newUrl = preg_replace("/Itemid=(\d*)/", "Itemid=" . $itemid, $newUrl);
$newUrl = preg_replace("/lang=((?>\w|-)*)/", "lang=" . $language->lang_code, $newUrl);
if (strpos($newUrl, ":" . $art_alias) === false)
{
$newUrl = preg_replace("/&id=(\d*)/", "&id=" . $art_id . ":" . $art_alias, $newUrl);
}

$simulatedAssoc = true;
$language->link = JRoute::_("index.php?" . $newUrl);
}
}
if (!$simulatedAssoc)
{
$language->link = JRoute::_('index.php?lang=' . $language->sef . '&Itemid=' . $itemid);
}
}
elseif ($active && $active->language == '*')
{
Expand Down

0 comments on commit 5fe9ea6

Please sign in to comment.