1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-04-21 00:02:18 +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
No known key found for this signature in database
GPG Key ID: 8117904FEDEFDD17
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',
'HOURS' => 'Hours',
'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',
'IF' => 'If',

View File

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