mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-10-31 21:33:00 +00:00
Send the user to the default page if when logging under a weird logout edge case :P Fixes #143.
This commit is contained in:
parent
00848d8a30
commit
5859a8dd70
2 changed files with 8 additions and 4 deletions
|
@ -1563,8 +1563,10 @@ class page_renderer
|
|||
$result .= "</span>";
|
||||
//$result .= page_renderer::$nav_divider;
|
||||
}
|
||||
else
|
||||
$result .= "<span class='not-logged-in'><a href='index.php?action=login&returnto=" . rawurlencode($_SERVER["REQUEST_URI"]) . "'>Login</a></span>";
|
||||
else {
|
||||
$returnto_url = $env->action !== "logout" ? $_SERVER["REQUEST_URI"] : "?action=view&page=" . rawurlencode($settings->defaultpage);
|
||||
$result .= "<span class='not-logged-in'><a href='index.php?action=login&returnto=" . rawurlencode($returnto_url) . "'>Login</a></span>";
|
||||
}
|
||||
break;
|
||||
|
||||
case "search": // Renders the search bar
|
||||
|
|
6
core.php
6
core.php
|
@ -1202,8 +1202,10 @@ class page_renderer
|
|||
$result .= "</span>";
|
||||
//$result .= page_renderer::$nav_divider;
|
||||
}
|
||||
else
|
||||
$result .= "<span class='not-logged-in'><a href='index.php?action=login&returnto=" . rawurlencode($_SERVER["REQUEST_URI"]) . "'>Login</a></span>";
|
||||
else {
|
||||
$returnto_url = $env->action !== "logout" ? $_SERVER["REQUEST_URI"] : "?action=view&page=" . rawurlencode($settings->defaultpage);
|
||||
$result .= "<span class='not-logged-in'><a href='index.php?action=login&returnto=" . rawurlencode($returnto_url) . "'>Login</a></span>";
|
||||
}
|
||||
break;
|
||||
|
||||
case "search": // Renders the search bar
|
||||
|
|
Loading…
Reference in a new issue