Commit 6d693c57 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Pass whole user object rather than id to createuser when creating the admin user

parent f3a1a36f
......@@ -642,7 +642,7 @@ function core_install_lastcoredata_defaults() {
set_profile_field($user->id, 'email', $user->email);
set_profile_field($user->id, 'firstname', $user->firstname);
set_profile_field($user->id, 'lastname', $user->lastname);
handle_event('createuser', $user->id);
handle_event('createuser', $user);
activity_add_admin_defaults(array($user->id));
db_commit();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment