diff --git a/code/BlogHolder.php b/code/BlogHolder.php index 99bb0b1..498fc63 100644 --- a/code/BlogHolder.php +++ b/code/BlogHolder.php @@ -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()); }