BUGFIX: fix post in the front end when not logged in

This commit is contained in:
carlos barberis 2013-03-18 11:00:04 +13:00
parent 2936024e8d
commit df544e01f2

View File

@ -173,7 +173,7 @@ class BlogHolder_Controller extends BlogTree_Controller {
'date', 'date',
'metaweblog', 'metaweblog',
'postblog' => 'BLOGMANAGEMENT', 'postblog' => 'BLOGMANAGEMENT',
'post' => 'BLOGMANAGEMENT', 'post',
'BlogEntryForm' => 'BLOGMANAGEMENT', 'BlogEntryForm' => 'BLOGMANAGEMENT',
); );
@ -299,7 +299,7 @@ class BlogHolder_Controller extends BlogTree_Controller {
} }
$blogentry->Status = "Published"; $blogentry->Status = "Published";
$blogentry->writeToStage("Stage"); $blogentry->writeToStage("Live");
$blogentry->publish("Stage", "Live"); $blogentry->publish("Stage", "Live");
$this->redirect($this->Link()); $this->redirect($this->Link());