Skip to content

Commit

Permalink
Merge branch '4.x' into RuntimeException
Browse files Browse the repository at this point in the history
  • Loading branch information
l0gicgate committed Feb 12, 2022
2 parents 282e416 + 3fa6092 commit dc1d459
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions Slim/Error/Renderers/HtmlErrorRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,21 +72,23 @@ private function renderExceptionFragment(Throwable $exception): string
public function renderHtmlBody(string $title = '', string $html = ''): string
{
return sprintf(
'<html>' .
' <head>' .
" <meta http-equiv='Content-Type' content='text/html; charset=utf-8'>" .
' <title>%s</title>' .
' <style>' .
' body{margin:0;padding:30px;font:12px/1.5 Helvetica,Arial,Verdana,sans-serif}' .
' h1{margin:0;font-size:48px;font-weight:normal;line-height:48px}' .
' strong{display:inline-block;width:65px}' .
' </style>' .
' </head>' .
' <body>' .
' <h1>%s</h1>' .
' <div>%s</div>' .
' <a href="#" onClick="window.history.go(-1)">Go Back</a>' .
' </body>' .
'<!doctype html>' .
'<html lang="en">' .
' <head>' .
' <meta charset="utf-8">' .
' <meta name="viewport" content="width=device-width, initial-scale=1">' .
' <title>%s</title>' .
' <style>' .
' body{margin:0;padding:30px;font:12px/1.5 Helvetica,Arial,Verdana,sans-serif}' .
' h1{margin:0;font-size:48px;font-weight:normal;line-height:48px}' .
' strong{display:inline-block;width:65px}' .
' </style>' .
' </head>' .
' <body>' .
' <h1>%s</h1>' .
' <div>%s</div>' .
' <a href="#" onclick="window.history.go(-1)">Go Back</a>' .
' </body>' .
'</html>',
$title,
$title,
Expand Down

0 comments on commit dc1d459

Please sign in to comment.