aboutsummaryrefslogtreecommitdiff
path: root/mod/blog
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
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')
-rw-r--r--mod/blog/blog_lib.php2
-rw-r--r--mod/blog/languages/en.php1
2 files changed, 2 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());
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',