aboutsummaryrefslogtreecommitdiffstats
path: root/mod/profile.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/profile.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/profile.php')
-rw-r--r--mod/profile.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/profile.php b/mod/profile.php
index b72c279e2..5576b49dd 100644
--- a/mod/profile.php
+++ b/mod/profile.php
@@ -90,7 +90,7 @@ function profile_content(&$a, $update = 0) {
$a->profile['profile_uid'] = $update;
}
else {
- if($a->profile['profile_uid'] == get_uid())
+ if($a->profile['profile_uid'] == local_user())
$o .= '<script> $(document).ready(function() { $(\'#nav-home-link\').addClass(\'nav-selected\'); });</script>';
}
@@ -308,7 +308,7 @@ function profile_content(&$a, $update = 0) {
if((($item['verb'] == ACTIVITY_LIKE) || ($item['verb'] == ACTIVITY_DISLIKE)) && ($item['id'] != $item['parent']))
continue;
- $lock = (($item['uid'] == get_uid()) && (strlen($item['allow_cid']) || strlen($item['allow_gid'])
+ $lock = (($item['uid'] == local_user()) && (strlen($item['allow_cid']) || strlen($item['allow_gid'])
|| strlen($item['deny_cid']) || strlen($item['deny_gid']))
? '<div class="wall-item-lock"><img src="images/lock_icon.gif" class="lockview" alt="' . t('Private Message') . '" onclick="lockview(event,' . $item['id'] . ');" /></div>'
: '<div class="wall-item-lock"></div>');