mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX: Amended some references to HTTPResponse, replacing with SS_HTTPResponse (from r96746)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@102373 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
1ad6130b64
commit
02353639d6
@ -281,7 +281,7 @@ class Director {
|
||||
$controllerObj->setSession($session);
|
||||
|
||||
$result = $controllerObj->handleRequest($request);
|
||||
if(!is_object($result) || $result instanceof HTTPResponse) return $result;
|
||||
if(!is_object($result) || $result instanceof SS_HTTPResponse) return $result;
|
||||
|
||||
user_error("Bad result from url " . $request->getURL() . " handled by " .
|
||||
get_class($controllerObj)." controller: ".get_class($result), E_USER_WARNING);
|
||||
|
@ -55,7 +55,7 @@ class ModelAsController extends Controller implements NestedController {
|
||||
|
||||
if($result instanceof RequestHandler) {
|
||||
$result = $result->handleRequest($this->request);
|
||||
} else if(!($result instanceof HTTPResponse)) {
|
||||
} else if(!($result instanceof SS_HTTPResponse)) {
|
||||
user_error("ModelAsController::getNestedController() returned bad object type '" .
|
||||
get_class($result)."'", E_USER_WARNING);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user