aboutsummaryrefslogtreecommitdiffstats
path: root/include/nav.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-08-27 22:27:36 -0700
committerfriendica <info@friendica.com>2012-08-27 22:27:36 -0700
commitfb714f9e724115993977b7a26acdda93bf84f605 (patch)
tree38c91b03c27025534cd5443ed4d4e84b3515824e /include/nav.php
parenta13c19603205b628f84b3de9ce23ab5029699783 (diff)
downloadvolse-hubzilla-fb714f9e724115993977b7a26acdda93bf84f605.tar.gz
volse-hubzilla-fb714f9e724115993977b7a26acdda93bf84f605.tar.bz2
volse-hubzilla-fb714f9e724115993977b7a26acdda93bf84f605.zip
recover frankentheme
Diffstat (limited to 'include/nav.php')
-rw-r--r--include/nav.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/include/nav.php b/include/nav.php
index 318512373..2a4333011 100644
--- a/include/nav.php
+++ b/include/nav.php
@@ -27,7 +27,7 @@ function nav(&$a) {
*
*/
- $myident = ((is_array($a->user) && isset($a->user['nickname'])) ? $a->user['nickname'] . '@' : '');
+ $myident = ((is_array($a->identity) && isset($a->identity['entity_address'])) ? $a->identity['entity_address'] . '@' : '');
$sitelocation = $myident . substr($a->get_baseurl($ssl_state),strpos($a->get_baseurl($ssl_state),'//') + 2 );
@@ -53,10 +53,10 @@ function nav(&$a) {
$nav['usermenu'][] = Array('notes/', t('Personal notes'), "", t('Your personal photos'));
// user info
- $r = q("SELECT micro FROM contact WHERE uid=%d AND self=1", intval($a->user['uid']));
+// $r = q("SELECT micro FROM contact WHERE uid=%d AND self=1", intval($a->user['uid']));
$userinfo = array(
- 'icon' => (count($r) ? $a->get_cached_avatar_image($r[0]['micro']) : $a->get_baseurl($ssl_state)."/images/person-48.jpg"),
- 'name' => $a->user['username'],
+ 'icon' => $a->get_baseurl($ssl_state)."/images/person-48.jpg",
+ 'name' => $a->identity['entity_name'],
);
}
@@ -117,7 +117,8 @@ function nav(&$a) {
/* only show friend requests for normal pages. Other page types have automatic friendship. */
- if($_SESSION['page_flags'] == PAGE_NORMAL || $_SESSION['page_flags'] == PAGE_PRVGROUP) {
+// if($_SESSION['page_flags'] == PAGE_NORMAL || $_SESSION['page_flags'] == PAGE_PRVGROUP) {
+ if($a->identity['entity_pageflags'] == PAGE_NORMAL) {
$nav['introductions'] = array('notifications/intros', t('Introductions'), "", t('Friend Requests'));
$nav['notifications'] = array('notifications', t('Notifications'), "", t('Notifications'));
$nav['notifications']['all']=array('notifications/system', t('See all notifications'), "", "");