diff options
author | marijus <mario@localhost.localdomain> | 2014-01-22 17:18:40 +0100 |
---|---|---|
committer | marijus <mario@localhost.localdomain> | 2014-01-22 17:18:40 +0100 |
commit | eb868f6df8ce31497992bab1e8c4fd39bee8fe15 (patch) | |
tree | 61d9e330eb6d0ad6541edcf2aa0567c73441052d /include | |
parent | 39142002238b416a2d823245cf046ca9eee0bf94 (diff) | |
download | volse-hubzilla-eb868f6df8ce31497992bab1e8c4fd39bee8fe15.tar.gz volse-hubzilla-eb868f6df8ce31497992bab1e8c4fd39bee8fe15.tar.bz2 volse-hubzilla-eb868f6df8ce31497992bab1e8c4fd39bee8fe15.zip |
make network tabs regard selected group (collection) and vice versa
Diffstat (limited to 'include')
-rw-r--r-- | include/conversation.php | 6 | ||||
-rw-r--r-- | include/group.php | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/include/conversation.php b/include/conversation.php index 708348ddd..c0bed2a6b 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -1374,13 +1374,13 @@ function network_tabs() { $tabs = array( array( 'label' => t('Commented Order'), - 'url'=>$a->get_baseurl(true) . '/' . $cmd . '?f=&order=comment' . ((x($_GET,'cid')) ? '&cid=' . $_GET['cid'] : ''), + 'url'=>$a->get_baseurl(true) . '/' . $cmd . '?f=&order=comment' . ((x($_GET,'cid')) ? '&cid=' . $_GET['cid'] : '') . ((x($_GET,'gid')) ? '&gid=' . $_GET['gid'] : ''), 'sel'=>$all_active, 'title'=> t('Sort by Comment Date'), ), array( 'label' => t('Posted Order'), - 'url'=>$a->get_baseurl(true) . '/' . $cmd . '?f=&order=post' . ((x($_GET,'cid')) ? '&cid=' . $_GET['cid'] : ''), + 'url'=>$a->get_baseurl(true) . '/' . $cmd . '?f=&order=post' . ((x($_GET,'cid')) ? '&cid=' . $_GET['cid'] : '') . ((x($_GET,'gid')) ? '&gid=' . $_GET['gid'] : ''), 'sel'=>$postord_active, 'title' => t('Sort by Post Date'), ), @@ -1393,7 +1393,7 @@ function network_tabs() { ), array( 'label' => t('New'), - 'url' => $a->get_baseurl(true) . '/' . $cmd . ((x($_GET,'cid')) ? '/?f=&cid=' . $_GET['cid'] : '') . '&new=1', + 'url' => $a->get_baseurl(true) . '/' . $cmd . ((x($_GET,'cid')) ? '/?f=&cid=' . $_GET['cid'] : '') . '&new=1' . ((x($_GET,'gid')) ? '&gid=' . $_GET['gid'] : ''), 'sel' => $new_active, 'title' => t('Activity Stream - by date'), ), diff --git a/include/group.php b/include/group.php index cdd779df2..56a7555bc 100644 --- a/include/group.php +++ b/include/group.php @@ -272,7 +272,7 @@ function group_side($every="connections",$each="group",$edit = false, $group_id 'cid' => $cid, 'text' => $rr['name'], 'selected' => $selected, - 'href' => (($mode == 0) ? $each.'?f=&gid='.$rr['id'] : $each."/".$rr['id']), + 'href' => (($mode == 0) ? $each.'?f=&gid='.$rr['id'] : $each."/".$rr['id']) . ((x($_GET,'new')) ? '&new=' . $_GET['new'] : '') . ((x($_GET,'order')) ? '&order=' . $_GET['order'] : ''), 'edit' => $groupedit, 'ismember' => in_array($rr['id'],$member_of), ); |