From a3940b4e505d04b34cb665ddc24611909512cbea Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Thu, 3 Jun 2010 00:00:14 +0000 Subject: [PATCH] MINOR Fixed SS_HTTPResponse references in CMSBatchActionHandler (from r98285) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@106105 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/CMSMain.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code/CMSMain.php b/code/CMSMain.php index 7d21592f..1b6a9e40 100755 --- a/code/CMSMain.php +++ b/code/CMSMain.php @@ -566,10 +566,10 @@ JS; * @uses SiteTree->doRevertToLive() */ public function revert($data, $form) { - if(!isset($data['ID'])) return new HTTPResponse("Please pass an ID in the form content", 400); + if(!isset($data['ID'])) return new SS_HTTPResponse("Please pass an ID in the form content", 400); $restoredPage = Versioned::get_latest_version("SiteTree", $data['ID']); - if(!$restoredPage) return new HTTPResponse("SiteTree #$id not found", 400); + if(!$restoredPage) return new SS_HTTPResponse("SiteTree #$id not found", 400); $record = Versioned::get_one_by_stage( 'SiteTree', @@ -1187,12 +1187,12 @@ JS; */ function restore($data, $form) { if(!isset($data['ID']) || !is_numeric($data['ID'])) { - return new HTTPResponse("Please pass an ID in the form content", 400); + return new SS_HTTPResponse("Please pass an ID in the form content", 400); } $id = (int)$data['ID']; $restoredPage = Versioned::get_latest_version("SiteTree", $id); - if(!$restoredPage) return new HTTPResponse("SiteTree #$id not found", 400); + if(!$restoredPage) return new SS_HTTPResponse("SiteTree #$id not found", 400); $restoredPage = $restoredPage->doRestoreToStage();