BUG Fix incorrect error page handling

This commit is contained in:
Damian Mooyman 2015-12-15 13:46:02 +13:00
parent 79b86c304e
commit 31888735bd

View File

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