aboutsummaryrefslogtreecommitdiff
path: root/mod/blog
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-12-23 14:24:04 -0500
committercash <cash.costello@gmail.com>2011-12-23 14:24:04 -0500
commit1b657e860b966260ca88a0b0e91ee3d058a78a6a (patch)
treec0472f2242225a4bb9d1aa8d8180de6c24eb81a1 /mod/blog
parentada8737fa50d1aeaa33db8a1c1d740a6da449829 (diff)
downloadelgg-1b657e860b966260ca88a0b0e91ee3d058a78a6a.tar.gz
elgg-1b657e860b966260ca88a0b0e91ee3d058a78a6a.tar.bz2
Fixes #4240 not showing draft blog posts in group module
Diffstat (limited to 'mod/blog')
-rw-r--r--mod/blog/views/default/blog/group_module.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/mod/blog/views/default/blog/group_module.php b/mod/blog/views/default/blog/group_module.php
index 028827178..6082cdafd 100644
--- a/mod/blog/views/default/blog/group_module.php
+++ b/mod/blog/views/default/blog/group_module.php
@@ -20,11 +20,12 @@ $options = array(
'type' => 'object',
'subtype' => 'blog',
'container_guid' => elgg_get_page_owner_guid(),
+ 'metadata_name_value_pairs' => array('name' => 'status', 'value' => 'published'),
'limit' => 6,
'full_view' => false,
'pagination' => false,
);
-$content = elgg_list_entities($options);
+$content = elgg_list_entities_from_metadata($options);
elgg_pop_context();
if (!$content) {