aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/start.php
diff options
context:
space:
mode:
authorEvan Winslow <evan@elgg.org>2012-10-09 21:30:33 -0700
committerEvan Winslow <evan@elgg.org>2012-10-09 21:30:33 -0700
commitb1e9476d976d054107c60c91d23bc343edc39093 (patch)
treede441f04ad3e6e9004fed1bf63ab6c0a319ccf8e /mod/groups/start.php
parent34d9658c983861862d5a40198461e74f61a7b92e (diff)
parentfc5968eb4a2af5ba7cd1f04a05a75c1992ff96e7 (diff)
downloadelgg-b1e9476d976d054107c60c91d23bc343edc39093.tar.gz
elgg-b1e9476d976d054107c60c91d23bc343edc39093.tar.bz2
Merge pull request #374 from beck24/group-profile-forwarding
fixes #4824 - forward 1.7 group profile urls to correct destination in 1.8
Diffstat (limited to 'mod/groups/start.php')
-rw-r--r--mod/groups/start.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/mod/groups/start.php b/mod/groups/start.php
index c591410c5..9dca7dc16 100644
--- a/mod/groups/start.php
+++ b/mod/groups/start.php
@@ -194,6 +194,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');
if (!isset($page[0])) {