aboutsummaryrefslogtreecommitdiff
path: root/mod/groups
diff options
context:
space:
mode:
Diffstat (limited to 'mod/groups')
-rw-r--r--mod/groups/lib/discussion.php6
-rw-r--r--mod/groups/start.php7
2 files changed, 5 insertions, 8 deletions
diff --git a/mod/groups/lib/discussion.php b/mod/groups/lib/discussion.php
index 62b0552e0..6c86ff83f 100644
--- a/mod/groups/lib/discussion.php
+++ b/mod/groups/lib/discussion.php
@@ -17,7 +17,7 @@ function discussion_handle_all_page() {
'annotation_name' => 'generic_comment',
'order_by' => 'e.last_action desc',
'limit' => 40,
- 'fullview' => false,
+ 'full_view' => false,
));
$params = array(
@@ -57,7 +57,7 @@ function discussion_handle_list_page($guid) {
'limit' => 20,
'order_by' => 'e.last_action desc',
'container_guid' => $guid,
- 'fullview' => true,
+ 'full_view' => false,
);
$content = elgg_list_entities($options);
@@ -87,7 +87,6 @@ function discussion_handle_edit_page($type, $guid) {
gatekeeper();
if ($type == 'add') {
- elgg_set_page_owner_guid($guid);
$group = get_entity($guid);
if (!$group) {
register_error(elgg_echo('group:notfound'));
@@ -113,7 +112,6 @@ function discussion_handle_edit_page($type, $guid) {
register_error(elgg_echo('group:notfound'));
forward();
}
- elgg_set_page_owner_guid($group->getGUID());
$title = elgg_echo('groups:edittopic');
diff --git a/mod/groups/start.php b/mod/groups/start.php
index 96eca34d4..b3fe9560a 100644
--- a/mod/groups/start.php
+++ b/mod/groups/start.php
@@ -138,7 +138,7 @@ function groups_submenus() {
add_submenu_item(elgg_echo('groups:all'), "pg/groups/world/", 'groupslinks1');
if ($user = elgg_get_logged_in_user_entity()) {
- add_submenu_item(elgg_echo('groups:owned'), "pg/groups/owned/$user->username", 'groupslinks1');
+ add_submenu_item(elgg_echo('groups:owned'), "pg/groups/owner/$user->username", 'groupslinks1');
add_submenu_item(elgg_echo('groups:yours'), "pg/groups/member/$user->username", 'groupslinks1');
add_submenu_item(elgg_echo('groups:invitations'), "pg/groups/invitations/$user->username", 'groupslinks1');
}
@@ -151,7 +151,7 @@ function groups_submenus() {
*
* URLs take the form of
* All groups: pg/groups/all
- * User's owned groups: pg/groups/owned/<username>
+ * User's owned groups: pg/groups/owner/<username>
* User's member groups: pg/groups/member/<username>
* Group profile: pg/groups/profile/<guid>/<title>
* New group: pg/groups/add/<guid>
@@ -174,8 +174,7 @@ function groups_page_handler($page) {
case 'all':
groups_handle_all_page();
break;
- case 'owned':
- set_input('username', $page[1]);
+ case 'owner':
groups_handle_owned_page();
break;
case 'member':