mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #4850 from tractorcow/pulls/4.0/fix-response-errors
BUG Fix incorrect error page handling
This commit is contained in:
commit
e67db6d95a
@ -271,7 +271,7 @@ EOT
|
|||||||
// an error, and the response doesn't have any body yet that might contain
|
// an error, and the response doesn't have any body yet that might contain
|
||||||
// a more specific error description.
|
// a more specific error description.
|
||||||
if(Director::isLive() && $this->isError() && !$this->body) {
|
if(Director::isLive() && $this->isError() && !$this->body) {
|
||||||
$formatter = Injector::get('FriendlyErrorFormatter');
|
$formatter = Injector::inst()->get('FriendlyErrorFormatter');
|
||||||
echo $formatter->format(array(
|
echo $formatter->format(array(
|
||||||
'code' => $this->statusCode
|
'code' => $this->statusCode
|
||||||
));
|
));
|
||||||
|
Loading…
Reference in New Issue
Block a user