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:
Ingo Schommer 2010-04-12 02:35:58 +00:00
parent 1ad6130b64
commit 02353639d6
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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);
}