Skip to content
Browse files

MINOR fixed undefined var

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@91314 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
1 parent 87dfd71 commit 5f548f590140fb4293d41623497234a194e8e964 @rixth rixth committed Nov 11, 2009
Showing with 0 additions and 4 deletions.
  1. +0 −4 code/CMSBatchAction.php
View
4 code/CMSBatchAction.php
@@ -126,8 +126,6 @@ function run(DataObjectSet $pages) {
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 @@ function run(DataObjectSet $pages) {
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());

0 comments on commit 5f548f5

Please sign in to comment.
Something went wrong with that request. Please try again.