From 2eb99a3919c37a4d5600541820645f01fc651e37 Mon Sep 17 00:00:00 2001 From: nickw Date: Fri, 2 Apr 2010 21:10:31 +0000 Subject: Allowing non-owners to view published blog posts. git-svn-id: http://code.elgg.org/elgg/trunk@5583 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/blog/blog_lib.php | 2 +- mod/blog/languages/en.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/mod/blog/blog_lib.php b/mod/blog/blog_lib.php index 66d93ddce..d785b1a89 100644 --- a/mod/blog/blog_lib.php +++ b/mod/blog/blog_lib.php @@ -24,7 +24,7 @@ function blog_get_page_content_read($owner_guid = NULL, $guid = NULL) { if ($guid) { $blog = get_entity($guid); - if (!elgg_instanceof($blog, 'object', 'blog') || ($blog->status != 'final' && !$blog->canEdit())) { + if (!elgg_instanceof($blog, 'object', 'blog') || ($blog->status != 'published' && !$blog->canEdit())) { $content = elgg_echo('blog:error:post_not_found'); } else { elgg_push_breadcrumb($blog->title, $blog->getURL()); diff --git a/mod/blog/languages/en.php b/mod/blog/languages/en.php index 4ae1bf638..442a74069 100644 --- a/mod/blog/languages/en.php +++ b/mod/blog/languages/en.php @@ -18,6 +18,7 @@ $english = array( 'blog:friends' => 'Friends\' blogs', 'blog:title:user_blogs' => '%s\'s Blogs', + 'blog:title:all_blogs' => 'All Site Blogs', // Editing 'blog:new' => 'New blog post', -- cgit v1.2.3