aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/group.php4
-rw-r--r--include/widgets.php8
2 files changed, 10 insertions, 2 deletions
diff --git a/include/group.php b/include/group.php
index d339301b4..8f690785d 100644
--- a/include/group.php
+++ b/include/group.php
@@ -229,7 +229,7 @@ function mini_group_select($uid,$group = '') {
-function group_side($every="contacts",$each="group",$edit = false, $group_id = 0, $cid = '') {
+function group_side($every="contacts",$each="group",$edit = false, $group_id = 0, $cid = '',$mode = 1) {
$o = '';
@@ -272,7 +272,7 @@ function group_side($every="contacts",$each="group",$edit = false, $group_id = 0
'cid' => $cid,
'text' => $rr['name'],
'selected' => $selected,
- 'href' => (($each === 'network') ? $each.'?f=&gid='.$rr['id'] : $each."/".$rr['id']),
+ 'href' => (($mode == 0) ? $each.'?f=&gid='.$rr['id'] : $each."/".$rr['id']),
'edit' => $groupedit,
'ismember' => in_array($rr['id'],$member_of),
);
diff --git a/include/widgets.php b/include/widgets.php
index 87941f40f..5be77498c 100644
--- a/include/widgets.php
+++ b/include/widgets.php
@@ -32,3 +32,11 @@ function widget_tagcloud($args) {
return $o;
}
+function widget_collections($args) {
+ require_once('include/group.php');
+ $page = argv(0);
+ $gid = $_REQUEST['gid'];
+
+ return group_side($page,$page,true,$_REQUEST['gid'],'',0);
+
+} \ No newline at end of file