diff options
author | marijus <mario@mariovavti.com> | 2014-07-25 09:42:50 +0200 |
---|---|---|
committer | marijus <mario@mariovavti.com> | 2014-07-25 09:42:50 +0200 |
commit | 9938f0c52b44b6173e02386d3415fbc69ac107ea (patch) | |
tree | 5bdaaa2ba0fb8e48c3fd66bdd823a62928e30d67 /include/nav.php | |
parent | 9c40ee9e60df1eef0466f1c9f3cd9c30e429c80a (diff) | |
parent | 18f5890cb14e7c40909fdb92bffefee3415ba411 (diff) | |
download | volse-hubzilla-9938f0c52b44b6173e02386d3415fbc69ac107ea.tar.gz volse-hubzilla-9938f0c52b44b6173e02386d3415fbc69ac107ea.tar.bz2 volse-hubzilla-9938f0c52b44b6173e02386d3415fbc69ac107ea.zip |
Merge branch 'master' of https://github.com/friendica/red
Diffstat (limited to 'include/nav.php')
-rw-r--r-- | include/nav.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/nav.php b/include/nav.php index 80e4955e5..8133ecf67 100644 --- a/include/nav.php +++ b/include/nav.php @@ -34,6 +34,10 @@ EOT; if(local_user()) { $channel = $a->get_channel(); $observer = $a->get_observer(); + $prof = q("select id from profile where uid = %d and is_default = 1", + intval($channel['channel_id']) + ); + } elseif(remote_user()) $observer = $a->get_observer(); @@ -81,6 +85,9 @@ EOT; $nav['usermenu'][] = Array('profile/' . $channel['channel_address'], t('View Profile'), "", t('Your profile page')); if(feature_enabled(local_user(),'multi_profiles')) $nav['usermenu'][] = Array('profiles', t('Edit Profiles'),"", t('Manage/Edit profiles')); + else + $nav['usermenu'][] = Array('profiles/' . $prof[0]['id'], t('Edit Profile'),"", t('Edit your profile')); + $nav['usermenu'][] = Array('photos/' . $channel['channel_address'], t('Photos'), "", t('Your photos')); $nav['usermenu'][] = Array('cloud/' . $channel['channel_address'],t('Files'),"",t('Your files')); |