From fc5968eb4a2af5ba7cd1f04a05a75c1992ff96e7 Mon Sep 17 00:00:00 2001 From: Matt Beckett Date: Sun, 26 Aug 2012 09:32:53 -0600 Subject: forward 1.7 group profile urls to correct destination in 1.8 --- mod/groups/start.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'mod') diff --git a/mod/groups/start.php b/mod/groups/start.php index 193b72a4e..37aa839a9 100644 --- a/mod/groups/start.php +++ b/mod/groups/start.php @@ -195,6 +195,15 @@ function groups_setup_sidebar_menus() { */ function groups_page_handler($page) { + // forward old profile urls + if (is_numeric($page[0])) { + $group = get_entity($page[0]); + if (elgg_instanceof($group, 'group', '', 'ElggGroup')) { + system_message(elgg_echo('changebookmark')); + forward($group->getURL()); + } + } + elgg_load_library('elgg:groups'); elgg_push_breadcrumb(elgg_echo('groups'), "groups/all"); -- cgit v1.2.3