aboutsummaryrefslogtreecommitdiff
path: root/mod/blog/index.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-03 09:18:04 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-03 09:18:04 +0000
commit1ea82fe304b680eb9f84c24b98eb718ca9d59316 (patch)
treeafce9a9a4a3ccd7518780361775bc3b485a92a8a /mod/blog/index.php
parent5aa0d6b051f0cd644016a3a2eeb3fc6ada3dae0b (diff)
downloadelgg-1ea82fe304b680eb9f84c24b98eb718ca9d59316.tar.gz
elgg-1ea82fe304b680eb9f84c24b98eb718ca9d59316.tar.bz2
Blog update: you can post and view blog entries.
git-svn-id: https://code.elgg.org/elgg/trunk@381 36083f99-b078-4883-b0ff-0f9b5a30f544
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);