diff options
author | Cash Costello <cash.costello@gmail.com> | 2012-06-15 22:55:21 -0400 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2012-06-15 22:55:21 -0400 |
commit | eb9f207972cf4ebeec71cf7e3a0e762df5d4c40a (patch) | |
tree | 7c1bb1259206a3c6a3a165e27d4c431d6bd9e896 /mod/blog | |
parent | 81dac97890197658e5446e464604c2bc15903e5a (diff) | |
download | elgg-eb9f207972cf4ebeec71cf7e3a0e762df5d4c40a.tar.gz elgg-eb9f207972cf4ebeec71cf7e3a0e762df5d4c40a.tar.bz2 |
Fixes #4496, #4500 Refs #2814 Add consistent error message when content does not exist or user does not have access
Diffstat (limited to 'mod/blog')
-rw-r--r-- | mod/blog/languages/en.php | 1 | ||||
-rw-r--r-- | mod/blog/lib/blog.php | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/mod/blog/languages/en.php b/mod/blog/languages/en.php index e1930b916..5248a6f51 100644 --- a/mod/blog/languages/en.php +++ b/mod/blog/languages/en.php @@ -41,7 +41,6 @@ $english = array( 'blog:message:saved' => 'Blog post saved.', 'blog:error:cannot_save' => 'Cannot save blog post.', 'blog:error:cannot_write_to_container' => 'Insufficient access to save blog to group.', - 'blog:error:post_not_found' => 'This post has been removed, is invalid, or you do not have permission to view it.', 'blog:messages:warning:draft' => 'There is an unsaved draft of this post!', 'blog:edit_revision_notice' => '(Old version)', 'blog:message:deleted_post' => 'Blog post deleted.', diff --git a/mod/blog/lib/blog.php b/mod/blog/lib/blog.php index 286fe1832..9d6cb37e7 100644 --- a/mod/blog/lib/blog.php +++ b/mod/blog/lib/blog.php @@ -22,7 +22,7 @@ function blog_get_page_content_read($guid = NULL) { $return['filter'] = ''; if (!elgg_instanceof($blog, 'object', 'blog')) { - $return['content'] = elgg_echo('blog:error:post_not_found'); + $return['content'] = elgg_echo('noaccess'); return $return; } |