Continued with ext-blacklist:
[mailer.git] / inc / libs / register_functions.php
index 2d6c8e719eb6647449807a168632aa4dad4910ca..0fe4451f876ad837aeed67ed0151984e1591dde4 100644 (file)
@@ -287,23 +287,25 @@ function doUserRegistration () {
                reportBug(__FUNCTION__, __LINE__, 'Tried to register a user account without ext-user installed.');
        } // END - if
 
+       // Init extra SQL data
+       initExtraRegistrationSql();
+
        // Init filter data
        $filterData = array(
                // Initialization not done by default
-               'init_done' => FALSE,
-               'post_data' => postRequestArray(),
+               'init_done'   => FALSE,
+               'post_data'   => postRequestArray(),
+               'blacklisted' => '',
+               'message'     => '{--PRE_USER_REGISTRATION_FAILED--}',
        );
 
-       // Init extra SQL data
-       initExtraRegistrationSql();
-
        // Run the pre-registration chain
        $filterData = runFilterChain('pre_user_registration', $filterData);
 
        // Did the initialization work?
        if ($filterData['init_done'] === FALSE) {
                // Something bad happened!
-               displayMessage('{--PRE_USER_REGISTRATION_FAILED--}');
+               displayMessage($filterData['message']);
 
                // Stop here
                return FALSE;