aboutsummaryrefslogtreecommitdiffstats
path: root/mod/settings.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-10-18 14:34:59 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-10-18 14:34:59 -0700
commitac824fe83e67950f9303d13d574ff00b57dd5727 (patch)
tree025eb4346b278d5eb6493bd8b935cf6e842f3db1 /mod/settings.php
parent103814ab8e6940a8e0e24b618d2e02e0779bc39b (diff)
downloadvolse-hubzilla-ac824fe83e67950f9303d13d574ff00b57dd5727.tar.gz
volse-hubzilla-ac824fe83e67950f9303d13d574ff00b57dd5727.tar.bz2
volse-hubzilla-ac824fe83e67950f9303d13d574ff00b57dd5727.zip
eradicate redundant get_uid function
Diffstat (limited to 'mod/settings.php')
-rw-r--r--mod/settings.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/mod/settings.php b/mod/settings.php
index 7adc5e6de..720a38e8d 100644
--- a/mod/settings.php
+++ b/mod/settings.php
@@ -15,7 +15,7 @@ function settings_post(&$a) {
notice( t('Permission denied.') . EOL);
return;
}
- if(count($a->user) && x($a->user,'uid') && $a->user['uid'] != get_uid()) {
+ if(count($a->user) && x($a->user,'uid') && $a->user['uid'] != local_user()) {
notice( t('Permission denied.') . EOL);
return;
}
@@ -39,7 +39,7 @@ function settings_post(&$a) {
$password = hash('whirlpool',$newpass);
$r = q("UPDATE `user` SET `password` = '%s' WHERE `uid` = %d LIMIT 1",
dbesc($password),
- intval(get_uid())
+ intval(local_user())
);
if($r)
notice( t('Password changed.') . EOL);
@@ -116,7 +116,7 @@ function settings_post(&$a) {
intval($page_flags),
dbesc($defloc),
dbesc($theme),
- intval(get_uid())
+ intval(local_user())
);
if($r)
notice( t('Settings updated.') . EOL);
@@ -126,7 +126,7 @@ function settings_post(&$a) {
WHERE `is-default` = 1 AND `uid` = %d LIMIT 1",
intval($publish),
intval($net_publish),
- intval(get_uid())
+ intval(local_user())
);
if($old_visibility != $net_publish) {