From 2ef1ae397adcea77ae8cedcecd3a93cff44009e2 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Tue, 4 Oct 2011 13:24:01 +0200 Subject: [PATCH] MINOR Fixed method signature on batch actions --- code/batchactions/CMSBatchActions.php | 8 ++++---- code/controllers/AssetAdmin.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/code/batchactions/CMSBatchActions.php b/code/batchactions/CMSBatchActions.php index 892adaf3..9c323406 100644 --- a/code/batchactions/CMSBatchActions.php +++ b/code/batchactions/CMSBatchActions.php @@ -10,7 +10,7 @@ class CMSBatchAction_Publish extends CMSBatchAction { return _t('CMSBatchActions.PUBLISH_PAGES', 'Publish'); } - function run(DataObjectSet $pages) { + function run(SS_List $pages) { return $this->batchaction($pages, 'doPublish', _t('CMSBatchActions.PUBLISHED_PAGES', 'Published %d pages, %d failures') ); @@ -32,7 +32,7 @@ class CMSBatchAction_Unpublish extends CMSBatchAction { return _t('CMSBatchActions.UNPUBLISH_PAGES', 'Un-publish'); } - function run(DataObjectSet $pages) { + function run(SS_List $pages) { return $this->batchaction($pages, 'doUnpublish', _t('CMSBatchActions.UNPUBLISHED_PAGES', 'Un-published %d pages') ); @@ -50,7 +50,7 @@ class CMSBatchAction_Delete extends CMSBatchAction { return _t('CMSBatchActions.DELETE_DRAFT_PAGES', 'Delete from draft site'); } - function run(DataObjectSet $pages) { + function run(SS_List $pages) { $status = array( 'modified'=>array(), 'deleted'=>array(), @@ -98,7 +98,7 @@ class CMSBatchAction_DeleteFromLive extends CMSBatchAction { } - function run(DataObjectSet $pages) { + function run(SS_List $pages) { $status = array( 'modified'=>array(), 'deleted'=>array() diff --git a/code/controllers/AssetAdmin.php b/code/controllers/AssetAdmin.php index b23388a8..490f5c7d 100644 --- a/code/controllers/AssetAdmin.php +++ b/code/controllers/AssetAdmin.php @@ -521,7 +521,7 @@ class AssetAdmin_DeleteBatchAction extends CMSBatchAction { return _t('AssetAdmin_DeleteBatchAction.TITLE', 'Delete folders'); } - function run(DataObjectSet $records) { + function run(SS_List $records) { $status = array( 'modified'=>array(), 'deleted'=>array()