aboutsummaryrefslogtreecommitdiff
path: root/mod/blog/index.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-04 15:10:54 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-04 15:10:54 +0000
commite1fb557e88e9cb763f9f1006b80bf52756d62386 (patch)
tree6ed0b78fa51113a881c1d8ef35a297f4102c21be /mod/blog/index.php
parent8d001be6fbce495a541175e5c430813fc5f7ccbb (diff)
downloadelgg-e1fb557e88e9cb763f9f1006b80bf52756d62386.tar.gz
elgg-e1fb557e88e9cb763f9f1006b80bf52756d62386.tar.bz2
Introducing the all blog posts page.
git-svn-id: https://code.elgg.org/elgg/trunk@404 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/blog/index.php')
-rw-r--r--mod/blog/index.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/mod/blog/index.php b/mod/blog/index.php
index 23ccb9dcb..b7f1912f6 100644
--- a/mod/blog/index.php
+++ b/mod/blog/index.php
@@ -15,6 +15,10 @@
// Get the current page's owner
$page_owner = page_owner_entity();
+ if ($page_owner === false || is_null($page_owner)) {
+ $page_owner = $_SESSION['user'];
+ set_page_owner($page_owner->getGUID());
+ }
// Get any blog posts to display
$posts = $page_owner->getObjects('blog');