MINOR Fixed merge error

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92842 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2009-11-21 03:20:43 +00:00
parent b943a65f37
commit c18923040d

View File

@ -43,7 +43,7 @@ abstract class CMSBatchAction extends Object {
* }
* }
*/
public function batchaction(DataObjectSet $pages, $helperMethod, $successMessage) {
public function batchaction(DataObjectSet $pages, $helperMethod, $successMessage, $arguments = array()) {
$failures = 0;
$status = array('modified' => array(), 'error' => array());
@ -67,7 +67,7 @@ abstract class CMSBatchAction extends Object {
Controller::curr()->getResponse()->setStatusCode(
200,
sprintf($successMessage, $pages->Count())
sprintf($successMessage, $pages->Count(), count($status['error']))
);
return Convert::raw2json($status);