]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #4896: Limit group profile RSS to seachable object types
authorMatt Beckett <beck24@gmail.com>
Wed, 7 Nov 2012 22:16:49 +0000 (15:16 -0700)
committerSteve Clay <steve@mrclay.org>
Thu, 15 Nov 2012 04:11:32 +0000 (23:11 -0500)
mod/groups/views/rss/groups/profile/layout.php

index 3eeb9eaf2f41a338d52c9cadb250cb4c22b72378..0dafe78ad6d25e685bc5fced86e76a9d54328c69 100644 (file)
@@ -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(),
+       ));
+}