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:
parent
9bdb88879d
commit
1ea59731f0
@ -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',
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user