1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-09 10:16:36 +02:00

Merge branch '3.3.x'

This commit is contained in:
Marc Alexander
2025-03-08 09:07:58 +01:00
2 changed files with 10 additions and 2 deletions

View File

@@ -75,8 +75,15 @@ class file_downloader
*/
public function get(string $host, string $directory, string $filename, int $port = 443, int $timeout = 6): bool|string
{
// Initialize Guzzle client
$client = $this->create_client($host, $port, $timeout);
try
{
// Initialize Guzzle client
$client = $this->create_client($host, $port, $timeout);
}
catch (\RuntimeException $exception)
{
throw new runtime_exception('HTTP_HANDLER_NOT_FOUND');
}
// Set default values for error variables
$this->error_number = 0;