More cleanups and small improvements (e.g. usage of wrappers).
[mailer.git] / inc / libs / register_functions.php
index c6f458a565c3e8126a3432188ed8f3061c939085..5bd7d384258341264fb78f2145307038fdfb6569 100644 (file)
@@ -334,7 +334,7 @@ function doGenericUserRegistration () {
        assert(isset($GLOBALS['register_confirm_hash']));
 
        // Only comment this in if you develop
-       //* DEVELOPER-CODE: */ return TRUE;
+       //* DEVELOPER-CODE: */ $GLOBALS['register_userid'] = 1; return TRUE;
 
        // Create user's account...
        sqlQueryEscaped("INSERT INTO
@@ -419,6 +419,9 @@ function doGenericUserRegistration () {
                return FALSE;
        } // END - if
 
+       // Set new user id globally
+       $GLOBALS['register_userid'] = $filterData['register_insert_id'];
+
        // Shall we reset random refid? Only possible with latest ext-user
        if (isExtensionInstalledAndNewer('user', '0.3.4')) {
                // Reset all accounts, registration is done