mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
BUGFIX: get rid of unnecessary code in BlogEntry::unpublishPost
This commit is contained in:
parent
3cefdf4416
commit
31c56ca471
@ -254,9 +254,6 @@ class BlogEntry_Controller extends Page_Controller {
|
||||
$page = DataObject::get_by_id('SiteTree', $SQL_id);
|
||||
$page->deleteFromStage('Live');
|
||||
$page->flushCache();
|
||||
|
||||
$page = DataObject::get_by_id('SiteTree', $SQL_id);
|
||||
$page->Status = 'Unpublished';
|
||||
|
||||
Director::redirect($this->getParent()->Link());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user