X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fpeopletaggroupnav.php;h=44e4756b810a8bf0c462db9adeeaf94179c41264;hb=586fb5a5175d7a10f5f78dd026434e48202e5451;hp=212a90586b096e4289c79f461c6ea72a7e6c3a5d;hpb=419c2cd5b3be9b83823a835258c17f69590788cb;p=quix0rs-gnu-social.git diff --git a/lib/peopletaggroupnav.php b/lib/peopletaggroupnav.php index 212a90586b..44e4756b81 100644 --- a/lib/peopletaggroupnav.php +++ b/lib/peopletaggroupnav.php @@ -76,7 +76,7 @@ class PeopletagGroupNav extends Widget { $user = null; - // FIXME: we should probably pass this in + // FIXME: we should probably pass this in and check when PeopletagGroupNav is actually loaded etc. $action = $this->action->trimmed('action'); @@ -105,9 +105,10 @@ class PeopletagGroupNav extends Widget $this->out->elementStart('ul', array('class' => 'nav')); - if (Event::handle('StartPeopletagGroupNav', array($this))) { + if (Event::handle('StartPeopletagGroupNav', array($this)) + && $tag instanceof Profile_list && $user_profile instanceof Profile) { // People tag timeline - $this->out->menuItem(common_local_url('showprofiletag', array('tagger' => $user_profile->nickname, + $this->out->menuItem(common_local_url('showprofiletag', array('nickname' => $user_profile->nickname, 'tag' => $tag->tag)), // TRANS: Menu item in list navigation panel. _m('MENU','List'),