aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2012-11-05 09:09:34 +0100
committerSem <sembrestels@riseup.net>2012-11-05 09:09:34 +0100
commit388080a1ada96423816e62b86196f7bee3e7afa4 (patch)
treed38ad1882fdcee663f36adac3427070cee4eee47
parent766fe8ebbcc600982dddce4d93b15b65a7b8c1fb (diff)
downloadelgg-388080a1ada96423816e62b86196f7bee3e7afa4.tar.gz
elgg-388080a1ada96423816e62b86196f7bee3e7afa4.tar.bz2
Fixes #4904. Elgg 1.7 group blog RSS links forward correctly now.
-rw-r--r--mod/blog/lib/blog.php6
1 files 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);
}