diff options
author | Matt Beckett <beck24@gmail.com> | 2012-08-26 09:32:53 -0600 |
---|---|---|
committer | Matt Beckett <beck24@gmail.com> | 2012-08-26 09:32:53 -0600 |
commit | fc5968eb4a2af5ba7cd1f04a05a75c1992ff96e7 (patch) | |
tree | 6c97f29c6c5298fd8f52c58584a17b72526d32a8 /mod | |
parent | 4859e56edf1b17092751a6e9d7d89b03113253db (diff) | |
download | elgg-fc5968eb4a2af5ba7cd1f04a05a75c1992ff96e7.tar.gz elgg-fc5968eb4a2af5ba7cd1f04a05a75c1992ff96e7.tar.bz2 |
forward 1.7 group profile urls to correct destination in 1.8
Diffstat (limited to 'mod')
-rw-r--r-- | mod/groups/start.php | 9 |
1 files changed, 9 insertions, 0 deletions
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"); |