mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-13 09:53:12 +02:00
[ticket/14039] Use http_exception instead of die()
PHPBB3-14039
This commit is contained in:
@ -13,6 +13,7 @@
|
||||
|
||||
namespace phpbb\install\controller;
|
||||
|
||||
use phpbb\exception\http_exception;
|
||||
use phpbb\install\helper\config;
|
||||
use Symfony\Component\HttpFoundation\BinaryFileResponse;
|
||||
use Symfony\Component\HttpFoundation\ResponseHeaderBag;
|
||||
@ -49,7 +50,7 @@ class archive_download
|
||||
|
||||
if (!$filename)
|
||||
{
|
||||
die ('The requested file is not exist.');
|
||||
throw new http_exception(404, 'URL_NOT_FOUND');
|
||||
}
|
||||
|
||||
return $this->send_response($filename);
|
||||
@ -66,7 +67,7 @@ class archive_download
|
||||
|
||||
if (!$filename)
|
||||
{
|
||||
die ('The requested file is not exist.');
|
||||
throw new http_exception(404, 'URL_NOT_FOUND');
|
||||
}
|
||||
|
||||
return $this->send_response($filename);
|
||||
|
Reference in New Issue
Block a user