MINOR fixed undefined var

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@91314 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Tom Rix 2009-11-11 20:59:05 +00:00
parent 87dfd714b2
commit 5f548f5901

View File

@ -126,8 +126,6 @@ class CMSBatchAction_Delete extends CMSBatchAction {
FormResponse::add("$('Form_EditForm').reloadIfSetTo($id);");
}
$page->destroy();
unset($page);
}
$message = sprintf(_t('CMSBatchActions.DELETED_DRAFT_PAGES', 'Deleted %d pages from the draft site'), $pages->Count());
@ -173,8 +171,6 @@ class CMSBatchAction_DeleteFromLive extends CMSBatchAction {
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());