BUGFIX Fixed pages not being manipulated properly in the CMS because of a PHP error in CMSBatchAction

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@90936 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2009-11-05 22:54:17 +00:00 committed by Sam Minnee
parent 27521df744
commit 9b49ebf8b4

View File

@ -172,9 +172,6 @@ class CMSBatchAction_DeleteFromLive extends CMSBatchAction {
FormResponse::add("if(node && node.parentTreeNode) node.parentTreeNode.removeTreeNode(node);");
FormResponse::add("$('Form_EditForm').reloadIfSetTo($id);");
}
$page->destroy();
unset($page);
}
$message = sprintf(_t('CMSBatchActions.DELETED_PAGES', 'Deleted %d pages from the published site'), $pages->Count());