Updated SS_HTTPResponse_Exception -> HTTPResponse_Exception

This commit is contained in:
hirenpatel 2016-11-30 00:03:24 +00:00 committed by Robbie Averill
parent 7ee247e6df
commit 43c1b8352c
2 changed files with 5 additions and 5 deletions

View File

@ -3,7 +3,7 @@
namespace SilverStripe\Forms\GridField; namespace SilverStripe\Forms\GridField;
use SilverStripe\Control\Controller; use SilverStripe\Control\Controller;
use SilverStripe\Control\SS_HTTPResponse_Exception; use SilverStripe\Control\HTTPResponse_Exception;
use SilverStripe\Core\ClassInfo; use SilverStripe\Core\ClassInfo;
use SilverStripe\Core\Config\Config; use SilverStripe\Core\Config\Config;
use SilverStripe\Core\Object; use SilverStripe\Core\Object;
@ -180,7 +180,7 @@ class GridFieldAddNewMultiClass implements GridField_HTMLProvider, GridField_URL
} }
if(!$class || !array_key_exists($class, $classes)) { if(!$class || !array_key_exists($class, $classes)) {
throw new SS_HTTPResponse_Exception(400); throw new HTTPResponse_Exception(400);
} }
$handler = Object::create($this->itemRequestClass, $handler = Object::create($this->itemRequestClass,

View File

@ -3,7 +3,7 @@
namespace SilverStripe\Forms\GridField; namespace SilverStripe\Forms\GridField;
use SilverStripe\Control\Controller; use SilverStripe\Control\Controller;
use SilverStripe\Control\SS_HTTPResponse_Exception; use SilverStripe\Control\HTTPResponse_Exception;
use SilverStripe\Core\Object; use SilverStripe\Core\Object;
use SilverStripe\Forms\FieldList; use SilverStripe\Forms\FieldList;
use SilverStripe\Forms\Form; use SilverStripe\Forms\Form;
@ -151,11 +151,11 @@ class GridFieldEditableColumns extends GridFieldDataColumns implements
$list = $grid->getList(); $list = $grid->getList();
if(!ctype_digit($id)) { if(!ctype_digit($id)) {
throw new SS_HTTPResponse_Exception(null, 400); throw new HTTPResponse_Exception(null, 400);
} }
if(!$record = $list->byID($id)) { if(!$record = $list->byID($id)) {
throw new SS_HTTPResponse_Exception(null, 404); throw new HTTPResponse_Exception(null, 404);
} }
$form = $this->getForm($grid, $record); $form = $this->getForm($grid, $record);