From 31888735bdd665dd33f0b08e5fdfc9d033072b66 Mon Sep 17 00:00:00 2001 From: Damian Mooyman Date: Tue, 15 Dec 2015 13:46:02 +1300 Subject: [PATCH] BUG Fix incorrect error page handling --- control/HTTPResponse.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/control/HTTPResponse.php b/control/HTTPResponse.php index fcc2fdbea..d0fae6104 100644 --- a/control/HTTPResponse.php +++ b/control/HTTPResponse.php @@ -271,7 +271,7 @@ EOT // an error, and the response doesn't have any body yet that might contain // a more specific error description. if(Director::isLive() && $this->isError() && !$this->body) { - $formatter = Injector::get('FriendlyErrorFormatter'); + $formatter = Injector::inst()->get('FriendlyErrorFormatter'); echo $formatter->format(array( 'code' => $this->statusCode ));