BUGFIX: Add batch handler status messages (fixes #7427)

7427 was mostly fixed by Ingos previous patch. But two batch actions, delete from draft site and delete from published site werent returning
status messages. Abstracted out the status preperation code that the batch actions that were returning status messages were using, and
used that to add status messages to the problem two
This commit is contained in:
Hamish Friedlander 2012-06-22 14:09:52 +12:00
parent 211ce61ba7
commit 8c05f3554f

View File

@ -78,7 +78,7 @@ class CMSBatchAction_Delete extends CMSBatchAction {
}
return Convert::raw2json($status);
return $this->response(_t('CMSBatchActions.DELETED_DRAFT_PAGES', 'Deleted %d pages from draft site, %d failures'), $status);
}
function applicablePages($ids) {
@ -123,7 +123,7 @@ class CMSBatchAction_DeleteFromLive extends CMSBatchAction {
}
return Convert::raw2json($status);
return $this->response(_t('CMSBatchActions.DELETED_PAGES', 'Deleted %d pages from published site, %d failures'), $status);
}
function applicablePages($ids) {