mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Switch to tab based indentation
This commit is contained in:
parent
fa324f2f2c
commit
9bea8af325
@ -283,8 +283,8 @@ class BlogHolder_Controller extends BlogTree_Controller {
|
|||||||
} else {
|
} else {
|
||||||
$form->loadDataFrom(array("Author" => Cookie::get("BlogHolder_Name")));
|
$form->loadDataFrom(array("Author" => Cookie::get("BlogHolder_Name")));
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->extend("updateBlogEntryForm", $form);
|
$this->extend("updateBlogEntryForm", $form);
|
||||||
|
|
||||||
return $form;
|
return $form;
|
||||||
}
|
}
|
||||||
@ -314,13 +314,13 @@ class BlogHolder_Controller extends BlogTree_Controller {
|
|||||||
if(Object::has_extension($this->ClassName, 'Translatable')) {
|
if(Object::has_extension($this->ClassName, 'Translatable')) {
|
||||||
$blogentry->Locale = $this->Locale;
|
$blogentry->Locale = $this->Locale;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->extend("onBeforePostBlog", $blogentry);
|
$this->extend("onBeforePostBlog", $blogentry);
|
||||||
|
|
||||||
$blogentry->writeToStage("Stage");
|
$blogentry->writeToStage("Stage");
|
||||||
$blogentry->publish("Stage", "Live");
|
$blogentry->publish("Stage", "Live");
|
||||||
|
|
||||||
$this->extend("onAfterPostBlog", $blogentry);
|
$this->extend("onAfterPostBlog", $blogentry);
|
||||||
|
|
||||||
$this->redirect($this->Link());
|
$this->redirect($this->Link());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user