diff options
author | Steve Clay <steve@mrclay.org> | 2013-02-04 20:59:06 -0500 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2013-02-09 08:14:23 -0500 |
commit | 269d3621531a80b13221a2f6e663efe2ad20ccaa (patch) | |
tree | 68f69ccace8be00d579d96f02d77c93f196e53a0 /engine/lib/users.php | |
parent | 78e0ec583619cbb728cbe03df857c8219acaac7e (diff) | |
download | elgg-269d3621531a80b13221a2f6e663efe2ad20ccaa.tar.gz elgg-269d3621531a80b13221a2f6e663efe2ad20ccaa.tar.bz2 |
remove unused code: vars, foreach keys, etc
Diffstat (limited to 'engine/lib/users.php')
-rw-r--r-- | engine/lib/users.php | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/engine/lib/users.php b/engine/lib/users.php index c4e06895d..8e9086f57 100644 --- a/engine/lib/users.php +++ b/engine/lib/users.php @@ -343,8 +343,6 @@ function user_add_friend($user_guid, $friend_guid) { * @return bool Depending on success */ function user_remove_friend($user_guid, $friend_guid) { - global $CONFIG; - $user_guid = (int) $user_guid; $friend_guid = (int) $friend_guid; @@ -675,8 +673,6 @@ function find_active_users($seconds = 600, $limit = 10, $offset = 0, $count = fa * @return bool */ function send_new_password_request($user_guid) { - global $CONFIG; - $user_guid = (int)$user_guid; $user = get_entity($user_guid); @@ -916,9 +912,6 @@ function validate_email_address($address) { function register_user($username, $password, $name, $email, $allow_multiple_emails = false, $friend_guid = 0, $invitecode = '') { - // Load the configuration - global $CONFIG; - // no need to trim password. $username = trim($username); $name = trim(strip_tags($name)); @@ -1205,8 +1198,6 @@ function set_last_login($user_guid) { * @access private */ function user_create_hook_add_site_relationship($event, $object_type, $object) { - global $CONFIG; - add_entity_relationship($object->getGUID(), 'member_of_site', elgg_get_site_entity()->guid); } |