mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUG Fix incorrect error page handling
This commit is contained in:
parent
79b86c304e
commit
31888735bd
@ -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
|
||||
));
|
||||
|
Loading…
Reference in New Issue
Block a user