diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-10-28 19:17:36 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-10-28 19:17:36 +0000 |
commit | 7ddd9521b3f3a397da3b0a6b56238d31414eb4be (patch) | |
tree | 6eb6a9a51db5fa0f5d3cc2ec6de29b9e258b12a1 /actions/user | |
parent | bd3484417d170e62bc94e9db81d4ad37e8ddee6a (diff) | |
download | elgg-7ddd9521b3f3a397da3b0a6b56238d31414eb4be.tar.gz elgg-7ddd9521b3f3a397da3b0a6b56238d31414eb4be.tar.bz2 |
Standardized code in all of core, not including language files, tests, or core mods.
git-svn-id: http://code.elgg.org/elgg/trunk@7124 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'actions/user')
-rw-r--r-- | actions/user/language.php | 2 | ||||
-rw-r--r-- | actions/user/password.php | 4 | ||||
-rw-r--r-- | actions/user/spotlight.php | 7 |
3 files changed, 7 insertions, 6 deletions
diff --git a/actions/user/language.php b/actions/user/language.php index 79a583e68..252263cd2 100644 --- a/actions/user/language.php +++ b/actions/user/language.php @@ -18,7 +18,7 @@ if (!$user_id) { } if (($user) && ($language)) { - if (strcmp($language, $user->language)!=0) { + if (strcmp($language, $user->language) != 0) { $user->language = $language; if ($user->save()) { system_message(elgg_echo('user:language:success')); diff --git a/actions/user/password.php b/actions/user/password.php index 2af60dfb7..ceb9d4585 100644 --- a/actions/user/password.php +++ b/actions/user/password.php @@ -18,8 +18,8 @@ if (!$user_id) { $user = get_entity($user_id); } -if (($user) && ($password!="")) { - if (strlen($password)>=4) { +if (($user) && ($password != "")) { + if (strlen($password) >= 4) { if ($password == $password2) { $user->salt = generate_random_cleartext_password(); // Reset the salt $user->password = generate_user_password($user, $password); diff --git a/actions/user/spotlight.php b/actions/user/spotlight.php index f20d6bdd0..00525254b 100644 --- a/actions/user/spotlight.php +++ b/actions/user/spotlight.php @@ -2,13 +2,14 @@ /** * Close or open spotlight. * - * @package Elgg - * @subpackage Core + * @package Elgg.Core + * @subpackage Spotlight + * @todo This is deprecated in 1.8 */ gatekeeper(); -$closed = get_input('closed','true'); +$closed = get_input('closed', 'true'); if ($closed != 'true') { $closed = false; } else { |