Skip to content

Commit

Permalink
correcting useless code.
Browse files Browse the repository at this point in the history
  • Loading branch information
infograf768 committed Nov 19, 2016
1 parent d306211 commit 369c74f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions plugins/system/languagefilter/languagefilter.php
Expand Up @@ -623,16 +623,16 @@ public function onUserLogin($user, $options = array())
}

// Retrieves the Itemid from a login form.
$uri = new JUri($this->app->getUserState('users.login.form.return'));
$itemid = $uri->getVar('Itemid');
$uri = new JUri($this->app->getUserState('users.login.form.return'));

if ($active->params['login_redirect_url'])
{
// The login menu item form contains an internal URL redirection.
// This will override the automatic change to the user preferred site language.
$this->app->setUserState('users.login.form.return', JRoute::_($this->app->getUserState('users.login.form.return'), false));
/* The login menu item form contains an internal URL redirection.
This will override the automatic change to the user preferred site language.
We use the redirect as defined in the menu item.
*/
}
elseif ($itemid)
elseif ($uri->getVar('Itemid'))
{
// The login form contains a menu item redirection. Try to get associations from that menu item.
// If any association set to the user preferred site language, redirect to that page.
Expand Down

0 comments on commit 369c74f

Please sign in to comment.