Skip to content

Commit b3327fd

Browse files
committed
refactor(debug): use response service for error report status
Signed-off-by: memleakd <121398829+memleakd@users.noreply.github.com>
1 parent 97a4c76 commit b3327fd

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

app/Views/errors/html/error_report.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@
22

33
use CodeIgniter\CodeIgniter;
44
use CodeIgniter\HTTP\IncomingRequest;
5-
use CodeIgniter\HTTP\Response;
65
use CodeIgniter\HTTP\URI;
76

87
$reportMessage = str_replace(["\r\n", "\r"], "\n", $message);
98
$reportTitle = trim($reportMessage);
109
$reportTitle = $reportTitle === '' ? $title : explode("\n", $reportTitle, 2)[0];
1110
$messageLines = str_contains($reportMessage, "\n");
1211

13-
$reportResponse = new Response();
12+
$reportResponse = service('response', null, false);
1413
$reportResponse->setStatusCode($code);
1514

1615
$report = [

0 commit comments

Comments
 (0)