aboutsummaryrefslogtreecommitdiff
path: root/mod/blog/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/blog/index.php')
-rw-r--r--mod/blog/index.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/mod/blog/index.php b/mod/blog/index.php
index 1462d0745..23ccb9dcb 100644
--- a/mod/blog/index.php
+++ b/mod/blog/index.php
@@ -16,6 +16,12 @@
// Get the current page's owner
$page_owner = page_owner_entity();
+ // Get any blog posts to display
+ $posts = $page_owner->getObjects('blog');
+
+ // Display them
+ $body = elgg_view("blog/view",array('posts' => $posts));
+
// Display page
page_draw(sprintf(elgg_echo('blog:user'),$page_owner->name),$body);