From 388080a1ada96423816e62b86196f7bee3e7afa4 Mon Sep 17 00:00:00 2001 From: Sem Date: Mon, 5 Nov 2012 09:09:34 +0100 Subject: Fixes #4904. Elgg 1.7 group blog RSS links forward correctly now. --- mod/blog/lib/blog.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mod/blog/lib/blog.php b/mod/blog/lib/blog.php index 4622a9e7e..34ea5a01c 100644 --- a/mod/blog/lib/blog.php +++ b/mod/blog/lib/blog.php @@ -403,12 +403,12 @@ function blog_url_forwarder($page) { global $CONFIG; // group usernames - if (substr_count($page[0], 'group:')) { - preg_match('/group\:([0-9]+)/i', $page[0], $matches); + if (substr_count($page[1], 'group:')) { + preg_match('/group\:([0-9]+)/i', $page[1], $matches); $guid = $matches[1]; $entity = get_entity($guid); if ($entity) { - $url = "{$CONFIG->wwwroot}blog/group/$guid/all"; + $url = "{$CONFIG->wwwroot}blog/group/$guid/all?view=" . elgg_get_viewtype(); register_error(elgg_echo("changebookmark")); forward($url); } -- cgit v1.2.3