mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Rebase and merge upstream
This commit is contained in:
commit
6d7a1345c0
@ -320,10 +320,11 @@ class BlogHolder_Controller extends BlogTree_Controller {
|
||||
$oldMode = Versioned::get_reading_mode();
|
||||
Versioned::reading_stage('Stage');
|
||||
$blogentry->write();
|
||||
$blogentry->writeToStage("Stage");
|
||||
$blogentry->publish("Stage", "Live");
|
||||
Versioned::set_reading_mode($oldMode);
|
||||
|
||||
$this->extend("onAfterPostBlog", $blogentry);
|
||||
|
||||
$this->extend("onAfterPostBlog", $blogentry);
|
||||
|
||||
$this->redirect($this->Link());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user