Skip to content

Commit

Permalink
Mejorado el diseño de más pantallas de error.
Browse files Browse the repository at this point in the history
  • Loading branch information
NeoRazorX committed May 21, 2023
1 parent e7e0b90 commit ac9020b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions Core/Error/UnsafeFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ public function run(): void
{
http_response_code(403);

echo '<h1>' . Tools::lang()->trans('unsafe-file') . '</h1>';
echo '<p>' . $this->exception->getMessage() . '</p>';
$title = Tools::lang()->trans('unsafe-file');
$body = '<h1>' . $title . '</h1>'
. '<p>' . $this->exception->getMessage() . '</p>';

echo $this->htmlCard($title, $body, 'bg-danger');
}
}
7 changes: 5 additions & 2 deletions Core/Error/UnsafeFolder.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ public function run(): void
{
http_response_code(403);

echo '<h1>' . Tools::lang()->trans('unsafe-folder') . '</h1>';
echo '<p>' . $this->exception->getMessage() . '</p>';
$title = Tools::lang()->trans('unsafe-folder');
$html = '<h1>' . $title . '</h1>'
. '<p>' . $this->exception->getMessage() . '</p>';

echo $this->htmlCard($title, $html, 'bg-danger');
}
}

0 comments on commit ac9020b

Please sign in to comment.