aboutsummaryrefslogtreecommitdiff
path: root/mod/blog/blog_lib.php
diff options
context:
space:
mode:
authornickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-04-02 21:10:31 +0000
committernickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-04-02 21:10:31 +0000
commit2eb99a3919c37a4d5600541820645f01fc651e37 (patch)
treed8be4a4221b62539d8f9a1182f7b8238892bc8d8 /mod/blog/blog_lib.php
parent427b67e3401ff0b6416ac04c2a41926dfc932aff (diff)
downloadelgg-2eb99a3919c37a4d5600541820645f01fc651e37.tar.gz
elgg-2eb99a3919c37a4d5600541820645f01fc651e37.tar.bz2
Allowing non-owners to view published blog posts.
git-svn-id: http://code.elgg.org/elgg/trunk@5583 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/blog/blog_lib.php')
-rw-r--r--mod/blog/blog_lib.php2
1 files changed, 1 insertions, 1 deletions
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());