X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fguest%2Fwhat-login.php;h=15863bb1f96a6cef28bd294766a9fba2cfcc65a0;hb=8d2c9b91eb82ea74fac58b2541982f760d0f77fc;hp=03c05a6a87a71b96848ed9833448b5962d120ce2;hpb=1ebf518b9552f71ee95de6f4b80e6de3a27716d1;p=mailer.git
diff --git a/inc/modules/guest/what-login.php b/inc/modules/guest/what-login.php
index 03c05a6a87..15863bb1f9 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 +134,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
- handleFatalErrors();
+ runFilterChain('handle_fatal_errors');
} else {
// Load URL
- redirectToUrl($URL);
+ redirectToUrl($url);
}
} // END - if