diff options
author | Matt Beckett <beck24@gmail.com> | 2012-11-07 15:16:49 -0700 |
---|---|---|
committer | Steve Clay <steve@mrclay.org> | 2012-11-14 23:11:32 -0500 |
commit | cbf1943fe9b17ba371c533d2d6482ea8b2149d2e (patch) | |
tree | 5a250fca3686c7ca647a0bf5b53694ff402e5d99 /mod/groups/views | |
parent | b412b990eb3e8d30acbcf927c531d77f529ce8c4 (diff) | |
download | elgg-cbf1943fe9b17ba371c533d2d6482ea8b2149d2e.tar.gz elgg-cbf1943fe9b17ba371c533d2d6482ea8b2149d2e.tar.bz2 |
Fixes #4896: Limit group profile RSS to seachable object types
Diffstat (limited to 'mod/groups/views')
-rw-r--r-- | mod/groups/views/rss/groups/profile/layout.php | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/mod/groups/views/rss/groups/profile/layout.php b/mod/groups/views/rss/groups/profile/layout.php index 3eeb9eaf2..0dafe78ad 100644 --- a/mod/groups/views/rss/groups/profile/layout.php +++ b/mod/groups/views/rss/groups/profile/layout.php @@ -7,7 +7,12 @@ * @uses $vars['entity'] ElggGroup object */ -echo elgg_list_entities(array( - 'type' => 'object', - 'container_guid' => $vars['entity']->getGUID(), -)); +$entities = elgg_get_config('registered_entities'); + +if (!empty($entities['object'])) { + echo elgg_list_entities(array( + 'type' => 'object', + 'subtypes' => $entities['object'], + 'container_guid' => $vars['entity']->getGUID(), + )); +} |