summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-01-19 13:19:28 +0000
committerEvan Prodromou <evan@controlyourself.ca>2009-01-19 13:19:28 +0000
commitdc973820681063f81449d003ab90718c7e58d6ba (patch)
tree7d9acd6e57f8823d526bdd5a59c6ca52db840fe4 /lib
parent264ab53953d529680cea4df31ed125710bb26988 (diff)
Fix public group nav so it shows selection correctly
Diffstat (limited to 'lib')
-rw-r--r--lib/publicgroupnav.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/publicgroupnav.php b/lib/publicgroupnav.php
index 5ac4c0e12..97b57ec17 100644
--- a/lib/publicgroupnav.php
+++ b/lib/publicgroupnav.php
@@ -69,21 +69,23 @@ class PublicGroupNav extends Widget
function show()
{
+ $action_name = $this->action->trimmed('action');
+
$this->action->elementStart('ul', array('class' => 'nav'));
$this->out->menuItem(common_local_url('public'), _('Public'),
- _('Public timeline'), $this->action == 'public', 'nav_timeline_public');
+ _('Public timeline'), $action_name == 'public', 'nav_timeline_public');
$this->out->menuItem(common_local_url('tag'), _('Recent tags'),
- _('Recent tags'), $this->action == 'tag', 'nav_recent-tags');
+ _('Recent tags'), $action_name == 'tag', 'nav_recent-tags');
if (count(common_config('nickname', 'featured')) > 0) {
$this->out->menuItem(common_local_url('featured'), _('Featured'),
- _('Featured users'), $this->action == 'featured', 'nav_featured');
+ _('Featured users'), $action_name == 'featured', 'nav_featured');
}
$this->out->menuItem(common_local_url('favorited'), _('Popular'),
- _("Popular notices"), $this->action == 'favorited', 'nav_timeline_favorited');
+ _("Popular notices"), $action_name == 'favorited', 'nav_timeline_favorited');
$this->action->elementEnd('ul');
}