1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-02 23:07:39 +02:00

[ticket/17480] Use phpBB error message text instead of thrown by GuzzleHTTP

PHPBB-17480
This commit is contained in:
rxu
2025-03-05 10:10:29 +07:00
parent 9bdb88879d
commit 1ea59731f0
2 changed files with 2 additions and 1 deletions

View File

@@ -357,6 +357,7 @@ $lang = array_merge($lang, array(
'HIDE_ME' => 'Hide my online status this session', 'HIDE_ME' => 'Hide my online status this session',
'HOURS' => 'Hours', 'HOURS' => 'Hours',
'HOME' => 'Home', 'HOME' => 'Home',
'HTTP_HANDLER_NOT_FOUND' => 'The operation could not be completed because cURL PHP extension and allow_url_fopen PHP ini setting have been disabled and no other HTTP handler could be found.',
'ICQ' => 'ICQ', 'ICQ' => 'ICQ',
'IF' => 'If', 'IF' => 'If',

View File

@@ -82,7 +82,7 @@ class file_downloader
} }
catch (\RuntimeException $exception) catch (\RuntimeException $exception)
{ {
throw new runtime_exception($exception->getMessage()); throw new runtime_exception('HTTP_HANDLER_NOT_FOUND');
} }
// Set default values for error variables // Set default values for error variables