From 5718f812d9f1df8ecdac97bbcf6b47778f0f2e3b Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Thu, 4 Jun 2015 17:39:23 +0200 Subject: [PATCH] Network public publicgroupnav link would always show --- lib/publicgroupnav.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/publicgroupnav.php b/lib/publicgroupnav.php index 1c9d013293..9101a7f3b6 100644 --- a/lib/publicgroupnav.php +++ b/lib/publicgroupnav.php @@ -64,7 +64,7 @@ class PublicGroupNav extends Menu // TRANS: Menu item title in search group navigation panel. _('Public timeline'), $this->actionName == 'public', 'nav_timeline_public'); } - if (!$this->scoped instanceof Profile && common_config('public', 'localonly')) { + if (!$this->action->getScoped() instanceof Profile && common_config('public', 'localonly')) { // TRANS: Menu item in search group navigation panel. $this->out->menuItem(common_local_url('networkpublic'), _m('MENU','Network'), // TRANS: Menu item title in search group navigation panel. -- 2.39.5