From ac824fe83e67950f9303d13d574ff00b57dd5727 Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Mon, 18 Oct 2010 14:34:59 -0700 Subject: eradicate redundant get_uid function --- mod/settings.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'mod/settings.php') 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) { -- cgit v1.2.3