aboutsummaryrefslogtreecommitdiff
path: root/mod/blog/lib
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-20 22:25:37 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-20 22:25:37 +0000
commit8dca382032b814a6670a227080c0f662fe1d2255 (patch)
treedca25f581929ab09428395c8ec72322f266d2995 /mod/blog/lib
parenteda716aaf2f50d58f487209c9ea1dd9ddbea74c1 (diff)
downloadelgg-8dca382032b814a6670a227080c0f662fe1d2255.tar.gz
elgg-8dca382032b814a6670a227080c0f662fe1d2255.tar.bz2
Refs #2970 updated blog and bookmarks plugins
git-svn-id: http://code.elgg.org/elgg/trunk@8373 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/blog/lib')
-rw-r--r--mod/blog/lib/blog.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/mod/blog/lib/blog.php b/mod/blog/lib/blog.php
index aa9241d23..861f75f95 100644
--- a/mod/blog/lib/blog.php
+++ b/mod/blog/lib/blog.php
@@ -27,7 +27,6 @@ function blog_get_page_content_read($guid = NULL) {
return $return;
}
- elgg_set_page_owner_guid($blog->getContainerGUID());
$return['title'] = htmlspecialchars($blog->title);
$container = $blog->getContainerEntity();
@@ -75,7 +74,6 @@ function blog_get_page_content_list($container_guid = NULL) {
}
$return['title'] = elgg_echo('blog:title:user_blogs', array($container->name));
- elgg_set_page_owner_guid($container_guid);
$crumbs_title = $container->name;
elgg_push_breadcrumb($crumbs_title);
@@ -133,7 +131,6 @@ function blog_get_page_content_list($container_guid = NULL) {
*/
function blog_get_page_content_friends($user_guid) {
- elgg_set_page_owner_guid($user_guid);
$user = get_user($user_guid);
$return = array();
@@ -196,6 +193,7 @@ function blog_get_page_content_archive($owner_guid, $lower = 0, $upper = 0) {
$now = time();
$user = get_user($owner_guid);
+ elgg_set_page_owner_guid($owner_guid);
$crumbs_title = $user->name;
elgg_push_breadcrumb($crumbs_title, "pg/blog/owner/{$user->username}");
@@ -286,7 +284,6 @@ function blog_get_page_content_edit($page, $guid = 0, $revision = NULL) {
if ($page == 'edit') {
$blog = get_entity((int)$guid);
- elgg_set_page_owner_guid($blog->getContainerGUID());
$title = elgg_echo('blog:edit');
@@ -325,7 +322,6 @@ function blog_get_page_content_edit($page, $guid = 0, $revision = NULL) {
} else {
$container = get_entity($guid);
}
- elgg_set_page_owner_guid($container->guid);
elgg_push_breadcrumb(elgg_echo('blog:add'));
$body_vars = blog_prepare_form_vars($blog);