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
1 changed files with 2 additions and 2 deletions

View File

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