diff --git a/blog/lib.php b/blog/lib.php
index cdbbb3a5ed9..3aef6a1fc88 100755
--- a/blog/lib.php
+++ b/blog/lib.php
@@ -150,27 +150,6 @@ function blog_print_html_formatted_entries(&$blogFilter, $filtertype, $filtersel
// First let's see if the batchpublish form has submitted data
$post = data_submitted();
- if (!empty($post->batchpublish)) { //make sure we're processing the edit form here
-// print_object($post); //debug
- foreach ($post as $key => $publishto) {
- if ($key != 'batchpublish') {
- $useridandentryid = explode('-', $key);
- $userid = $useridandentryid[0];
- $entryid = $useridandentryid[1];
- $bloginfo = new BlogInfo($userid);
- $blogentry = $bloginfo->get_blog_entry_by_id($entryid);
- if ($blogentry->entryPublishState != $publishto) {
- if (!$blogentry->set_publishstate($publishto)) {
- echo 'Entry "'. $blogentry->entryTitle .'" could not be published.';
- } else {
- if ($error = $blogentry->save()) {
- echo 'New publish setting for entry "'. $blogentry->entryTitle .'" could not be saved. ERROR:'. $error.':
';
- }
- }
- }
- }
- }
- }
$morelink = '
';
// show personal or general heading block as applicable
@@ -188,6 +167,15 @@ function blog_print_html_formatted_entries(&$blogFilter, $filtertype, $filtersel
// show page next/previous links if applicable
print_paging_bar($blogFilter->get_viewable_entry_count(), $blogpage, $bloglimit, $blogFilter->baseurl, 'blogpage');
print '';
+
+ if (blog_isLoggedIn()) {
+ //the user's blog is enabled and they are viewing their own blog
+ $addlink = '