From c4b53b4aefe5a7d69ce912d0908e55aae8768f35 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Tue, 1 Mar 2011 16:35:25 -0500 Subject: [PATCH] don't show full profile menu all the time --- lib/defaultlocalnav.php | 3 --- lib/personalgroupnav.php | 6 ++++++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/defaultlocalnav.php b/lib/defaultlocalnav.php index b42d3a804c..7af3c9673f 100644 --- a/lib/defaultlocalnav.php +++ b/lib/defaultlocalnav.php @@ -56,9 +56,6 @@ class DefaultLocalNav extends Menu if (!empty($user)) { $pn = new PersonalGroupNav($this->action); $this->submenu(_m('Home'), $pn); - - $sn = new SubGroupNav($this->action, $user); - $this->submenu(_m('Profile'), $sn); } $bn = new PublicGroupNav($this->action); diff --git a/lib/personalgroupnav.php b/lib/personalgroupnav.php index 6a31358596..e428e92e63 100644 --- a/lib/personalgroupnav.php +++ b/lib/personalgroupnav.php @@ -71,6 +71,12 @@ class PersonalGroupNav extends Menu _('Home'), sprintf(_('%s and friends'), $name), $action == 'all', 'nav_timeline_personal'); + $this->out->menuItem(common_local_url('showstream', array('nickname' => + $this->user->nickname)), + _('Profile'), + (empty($profile)) ? $this->user->nickname : $profile->getBestName(), + $action == 'showstream', + 'nav_profile'); $this->out->menuItem(common_local_url('replies', array('nickname' => $nickname)), _('Replies'), -- 2.39.5