BUGFIX: get rid of unnecessary code in BlogEntry::unpublishPost

This commit is contained in:
carlos barberis 2012-05-19 15:27:29 +12:00
parent 3cefdf4416
commit 31c56ca471

View File

@ -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());
}