diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-09-08 20:14:17 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-09-08 20:14:17 -0700 |
commit | ffb1997902facb36b78a7cfa522f41f2b3d71cda (patch) | |
tree | e9fe47acf26c5fd2c742677f2610b60d3008eb26 /mod/profile.php | |
parent | b49858b038a0a05bbe7685929e88071d0e125538 (diff) | |
download | volse-hubzilla-ffb1997902facb36b78a7cfa522f41f2b3d71cda.tar.gz volse-hubzilla-ffb1997902facb36b78a7cfa522f41f2b3d71cda.tar.bz2 volse-hubzilla-ffb1997902facb36b78a7cfa522f41f2b3d71cda.zip |
mistpark 2.0 infrasturcture lands
Diffstat (limited to 'mod/profile.php')
-rw-r--r-- | mod/profile.php | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/mod/profile.php b/mod/profile.php index c5047d615..1520afff7 100644 --- a/mod/profile.php +++ b/mod/profile.php @@ -24,7 +24,7 @@ function profile_load(&$a, $username, $profile = 0) { ); if(($r === false) || (! count($r))) { - notice("No profile" . EOL ); + notice( t('No profile') . EOL ); $a->error = 404; return; } @@ -44,20 +44,11 @@ function profile_init(&$a) { if($a->argc > 1) $which = $a->argv[1]; else { - notice("No profile" . EOL ); + notice( t('No profile') . EOL ); $a->error = 404; return; } - if((remote_user()) && ($a->argc > 2) && ($a->argv[2] == 'visit')) - $_SESSION['is_visitor'] = 1; -// else { -// unset($_SESSION['is_visitor']); -// unset($_SESSION['visitor_id']); -// if(! $_SESSION['uid']) -// unset($_SESSION['authenticated']); -// } - $profile = 0; if((local_user()) && ($a->argc > 2) && ($a->argv[2] == 'view')) { $which = $a->user['nickname']; @@ -173,7 +164,7 @@ function profile_content(&$a, $update = false) { // Profile owner - everything is visible - if(local_user() && ($_SESSION['uid'] == $a->profile['uid'])) { + if(local_user() && ($_SESSION['uid'] == $a->profile['profile_uid'])) { $sql_extra = ''; // Oh - while we're here... reset the Unseen messages |