diff options
Diffstat (limited to 'mod')
-rw-r--r-- | mod/groups/all.php | 4 | ||||
-rw-r--r-- | mod/groups/index.php | 4 | ||||
-rw-r--r-- | mod/groups/membership.php | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/mod/groups/all.php b/mod/groups/all.php index d397abe2f..8e99ea780 100644 --- a/mod/groups/all.php +++ b/mod/groups/all.php @@ -62,7 +62,7 @@ $objects = "<div class='group_listings'>".$objects."</div>"; $title = sprintf(elgg_echo("groups:all"),page_owner_entity()->name); - $area1 .= elgg_view('page_elements/content_header', array('context' => "everyone", 'type' => 'groups')); + $area1 .= elgg_view('page_elements/content_header', array('context' => "everyone", 'type' => 'groups', 'new_link' => "{$CONFIG->url}pg/groups/new")); $area1 .= elgg_view("groups/group_sort_menu", array("count" => $group_count, "filter" => $filter)) . $objects; $body = elgg_view_layout('one_column_with_sidebar', $area1, $area2); @@ -71,4 +71,4 @@ -?>
\ No newline at end of file +?> diff --git a/mod/groups/index.php b/mod/groups/index.php index 501e6e288..36fc35242 100644 --- a/mod/groups/index.php +++ b/mod/groups/index.php @@ -17,7 +17,7 @@ $title = elgg_echo("groups:owned"); // Get objects - $area1 = elgg_view('page_elements/content_header', array('context' => "everyone", 'type' => 'groups')); + $area1 = elgg_view('page_elements/content_header', array('context' => "everyone", 'type' => 'groups', 'new_link' => "{$CONFIG->url}pg/groups/new")); set_context('search'); $objects = elgg_list_entities(array('types' => 'group', 'owner_guid' => page_owner(), 'limit' => $limit, 'offset' => $offset, 'full_view' => FALSE)); @@ -28,4 +28,4 @@ // Finally draw the page page_draw($title, $body); -?>
\ No newline at end of file +?> diff --git a/mod/groups/membership.php b/mod/groups/membership.php index ac3ad7439..df0877b14 100644 --- a/mod/groups/membership.php +++ b/mod/groups/membership.php @@ -23,7 +23,7 @@ } else $title = elgg_echo("groups:owned"); // Get objects - $area2 = elgg_view('page_elements/content_header', array('context' => "mine", 'type' => 'groups')); + $area2 = elgg_view('page_elements/content_header', array('context' => "mine", 'type' => 'groups', 'new_link' => "{$CONFIG->url}pg/groups/new")); set_context('search'); // offset is grabbed in the list_entities_from_relationship() function |