Skip to:
Content

Changeset 871


Ignore:
Timestamp:
06/21/07 22:35:00 (7 years ago)
Author:
mdawaffe
Message:

[870] for branches/0.8: globalize $user_login and friends for register-success template. Fixes #669

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/0.8/register.php

    r792 r871  
    77 
    88$user_login = $user_safe = true; 
     9 
     10$_globals = array('profile_info_keys', 'user_safe', 'user_login', 'user_email', 'user_url', 'bad_input'); 
     11$_globals = array_merge($_globals, array_keys($profile_info_keys)); 
    912 
    1013if ($_POST) : 
     
    3538        do_action('register_user', $user_id); 
    3639 
    37         bb_load_template( 'register-success.php' ); 
     40        bb_load_template( 'register-success.php', $_globals ); 
    3841        exit();  
    3942    endif; 
     
    4548    $user_login = ''; 
    4649 
    47 $_globals = array('profile_info_keys', 'user_safe', 'user_login', 'user_email', 'user_url', 'bad_input'); 
    48 $_globals = array_merge($_globals, array_keys($profile_info_keys)); 
    49  
    5050bb_load_template( 'register.php', $_globals ); 
    5151 
Note: See TracChangeset for help on using the changeset viewer.