diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-04-04 15:10:54 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-04-04 15:10:54 +0000 |
commit | e1fb557e88e9cb763f9f1006b80bf52756d62386 (patch) | |
tree | 6ed0b78fa51113a881c1d8ef35a297f4102c21be /mod/blog/index.php | |
parent | 8d001be6fbce495a541175e5c430813fc5f7ccbb (diff) | |
download | elgg-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.php | 4 |
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');
|