diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-04-02 01:30:30 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-04-02 01:30:30 +0000 |
commit | a112284bc2420bb8cfb336857ad3d772cd0f3ed3 (patch) | |
tree | 9e207db209b4f5fec0e9edc6d58f4ed490b4278f /actions/useradd.php | |
parent | 656bcd37c35b4a330394cdd2d9f9b84c8d9541bc (diff) | |
download | elgg-a112284bc2420bb8cfb336857ad3d772cd0f3ed3.tar.gz elgg-a112284bc2420bb8cfb336857ad3d772cd0f3ed3.tar.bz2 |
Fixes #3233 useradd form is now sticky
git-svn-id: http://code.elgg.org/elgg/trunk@8901 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'actions/useradd.php')
-rw-r--r-- | actions/useradd.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/actions/useradd.php b/actions/useradd.php index f20b9d070..8e588d073 100644 --- a/actions/useradd.php +++ b/actions/useradd.php @@ -6,6 +6,8 @@ * @subpackage Core */ +elgg_make_sticky_form('useradd'); + // Get variables $username = get_input('username'); $password = get_input('password'); @@ -28,7 +30,10 @@ try { $new_user->makeAdmin(); } + elgg_clear_sticky_form('useradd'); + $new_user->admin_created = TRUE; + // @todo ugh, saving a guid as metadata! $new_user->created_by_guid = elgg_get_logged_in_user_guid(); $subject = elgg_echo('useradd:subject'); |