diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-04-26 17:45:16 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-04-26 17:45:16 +0000 |
commit | 40b55e871e12699ab40ec720c457550e972cdb1f (patch) | |
tree | cbe0d14b2389b799da670b5c7fa7a75b607a2334 | |
parent | b36b1a1a51cf8bdc2a4665b23c4a62c26e2bfca8 (diff) | |
download | elgg-40b55e871e12699ab40ec720c457550e972cdb1f.tar.gz elgg-40b55e871e12699ab40ec720c457550e972cdb1f.tar.bz2 |
Updated calls to content_header to point to correct new link in groups.
git-svn-id: http://code.elgg.org/elgg/trunk@5880 36083f99-b078-4883-b0ff-0f9b5a30f544
-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 |