Skip to content

Commit

Permalink
Phase 2 convert BRANCH to PSR-12
Browse files Browse the repository at this point in the history
  • Loading branch information
joomla-bot committed Jun 27, 2022
1 parent f964702 commit 42d4257
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions components/com_users/src/Controller/UserController.php
Expand Up @@ -10,8 +10,6 @@

namespace Joomla\Component\Users\Site\Controller;

\defined('_JEXEC') or die;

use Joomla\CMS\Application\ApplicationHelper;
use Joomla\CMS\Language\Multilanguage;
use Joomla\CMS\Language\Text;
Expand Down Expand Up @@ -52,9 +50,8 @@ public function login()
if (is_numeric($data['return'])) {
$language = $this->getModel('Login', 'Site')->getMenuLanguage($data['return']);
$data['return'] = 'index.php?Itemid=' . $data['return'] . ($language !== '*' ? '&lang=' . $language : '');
}
// Don't redirect to an external URL.
elseif (!Uri::isInternal($data['return'])) {
} elseif (!Uri::isInternal($data['return'])) {
// Don't redirect to an external URL.
$data['return'] = '';
}

Expand Down

0 comments on commit 42d4257

Please sign in to comment.