From: Alexander Ebert Date: Fri, 15 Apr 2016 22:03:44 +0000 (+0200) Subject: Removed delayed redirect from login/logout X-Git-Tag: 3.0.0_Beta_1~1887 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=06edbf2791e2411bc7d4b7aa80680c93ea0536b6;p=GitHub%2FWoltLab%2FWCF.git Removed delayed redirect from login/logout --- diff --git a/wcfsetup/install/files/lib/action/LogoutAction.class.php b/wcfsetup/install/files/lib/action/LogoutAction.class.php index 895a61e34d..c86bda18dd 100644 --- a/wcfsetup/install/files/lib/action/LogoutAction.class.php +++ b/wcfsetup/install/files/lib/action/LogoutAction.class.php @@ -8,7 +8,7 @@ use wcf\util\HeaderUtil; * Does the user logout. * * @author Marcel Werk - * @copyright 2001-2015 WoltLab GmbH + * @copyright 2001-2016 WoltLab GmbH * @license GNU Lesser General Public License * @package com.woltlab.wcf * @subpackage action @@ -37,7 +37,7 @@ class LogoutAction extends \wcf\acp\action\LogoutAction { $this->executed(); // forward to index page - HeaderUtil::delayedRedirect(LinkHandler::getInstance()->getLink(), WCF::getLanguage()->get('wcf.user.logout.redirect')); + HeaderUtil::redirect(LinkHandler::getInstance()->getLink()); exit; } } diff --git a/wcfsetup/install/files/lib/form/LoginForm.class.php b/wcfsetup/install/files/lib/form/LoginForm.class.php index 2f4caa95c0..f7d27ffab1 100644 --- a/wcfsetup/install/files/lib/form/LoginForm.class.php +++ b/wcfsetup/install/files/lib/form/LoginForm.class.php @@ -73,7 +73,7 @@ class LoginForm extends \wcf\acp\form\LoginForm { // redirect to url WCF::getTPL()->assign('__hideUserMenu', true); - HeaderUtil::delayedRedirect($this->url, WCF::getLanguage()->get('wcf.user.login.redirect')); + HeaderUtil::redirect($this->url); exit; } diff --git a/wcfsetup/install/lang/de.xml b/wcfsetup/install/lang/de.xml index 88c6f77ae0..bd1e6ed120 100644 --- a/wcfsetup/install/lang/de.xml +++ b/wcfsetup/install/lang/de.xml @@ -2711,9 +2711,7 @@ Fehler sind beispielsweise: - - diff --git a/wcfsetup/install/lang/en.xml b/wcfsetup/install/lang/en.xml index d371e85069..2666a5d501 100644 --- a/wcfsetup/install/lang/en.xml +++ b/wcfsetup/install/lang/en.xml @@ -2742,9 +2742,7 @@ Errors are: - -