aboutsummaryrefslogtreecommitdiff
path: root/actions/user
diff options
context:
space:
mode:
Diffstat (limited to 'actions/user')
-rw-r--r--actions/user/language.php2
-rw-r--r--actions/user/password.php4
-rw-r--r--actions/user/spotlight.php7
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 {