From: Sam Nicholls Date: Fri, 8 Apr 2011 11:06:55 +0000 (+0100) Subject: Modified actions/login.php to redirect logged in users who hit login/ to X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4bf5158d4358dea80b44767dfe4a28110be8a521;p=quix0rs-gnu-social.git Modified actions/login.php to redirect logged in users who hit login/ to the site index. Removed the throwing of a clientError in favour of a common_redirect to index to fix Issue 2990: "If logged in, just redirect to home page on /login" --- diff --git a/actions/login.php b/actions/login.php index 7ec9c32139..dcf9b53936 100644 --- a/actions/login.php +++ b/actions/login.php @@ -94,8 +94,7 @@ class LoginAction extends Action parent::handle($args); if (common_is_real_login()) { - // TRANS: Client error displayed when trying to log in while already logged in. - $this->clientError(_('Already logged in.')); + common_redirect(common_local_url('index')); } else if ($_SERVER['REQUEST_METHOD'] == 'POST') { $this->checkLogin(); } else {