Bug #22267
closedempty redirect setting: login message without logout button
0%
Description
If a login doesn't have a redirect setting (for example if a login box is needed on any page and a user shouldn't be redirected at login) the logged-in message only gets the content of the markers ###STATUS_HEADER### and ###STATUS_MESSAGE###. The logout button isn't shown.
This can be fixed in class.user_felogin_pi1.php with the following three lines of code, which have to be inserted in the function showLogout() right before the line "// Hook for general actions after after login has been confirmed":
$subpart = $this->cObj->getSubpart($this->template, '###TEMPLATE_LOGOUT###');
$markerArray['###LOGOUT_LABEL###'] = $this->pi_getLL('logout', '', 1);
$markerArray['###USERNAME###'] = htmlspecialchars($GLOBALS['TSFE']->fe_user->user['username']);
See a german explanation with screen shots on http://info.zeichensatz.de/index.php?id=145
(issue imported from #M13798)
Updated by Steffen Kamper over 13 years ago
Both is valid, that's why i made it switchable in #15421