Skip to content

Commit

Permalink
Removing unnecessary run of JRouter::parse()
Browse files Browse the repository at this point in the history
  • Loading branch information
Hackwar committed Oct 12, 2014
1 parent 3a662c8 commit 7bb3185
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/mod_login/helper.php
Expand Up @@ -60,8 +60,7 @@ public static function getReturnURL($params, $type)
if (!$url)
{
// Stay on the same page
$uri = clone JUri::getInstance();
$vars = $router->parse($uri);
$vars = $router->getVars();
unset($vars['lang']);

if ($router->getMode() == JROUTER_MODE_SEF)
Expand Down

0 comments on commit 7bb3185

Please sign in to comment.