X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fguest%2Fwhat-login.php;h=60228452a64087e401424d8b2d586f4a6ad6044f;hp=901f7b8c69dfadb4dd53372f62ab0634abd85b58;hb=3161d70d2c3a86649dd16a7909ec16f801f16e4e;hpb=9afd6ec5878544a7982c50ed9c0dd7de37606d5b
diff --git a/inc/modules/guest/what-login.php b/inc/modules/guest/what-login.php
index 901f7b8c69..60228452a6 100644
--- a/inc/modules/guest/what-login.php
+++ b/inc/modules/guest/what-login.php
@@ -1,7 +1,7 @@
-
|
-
- ";
+ // Do we have a userid set?
+ if (isSessionVariableSet('current_userid')) {
+ // Then prefetch data for this account
+ fetchUserData(getSession('current_userid'));
+ } // END - if
- // Convert the code to message
- $message .= getMessageFromErrorCode($errorCode);
-
- // Continue with HTML
- $message .= "
+ // @TODO Move this HTML code into a template
+ $content['message'] = ' |
+
+ ' . getMessageFromErrorCode($errorCode) . '
|
- |
-
\n";
- $content['message'] = $message;
+';
} // END - if
// Display login form with resend-password form
@@ -129,14 +138,14 @@ if (isExtensionActive('nickname')) {
}
// Was an URL constructed?
-if (!empty($URL)) {
+if (!empty($url)) {
// URL was constructed
- if (getTotalFatalErrors() > 0) {
+ if (ifFatalErrorsDetected()) {
// Handle fatal errors
runFilterChain('handle_fatal_errors');
} else {
// Load URL
- redirectToUrl($URL);
+ redirectToUrl($url);
}
} // END - if