mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/17480] Use phpBB error message text instead of thrown by GuzzleHTTP
PHPBB-17480
This commit is contained in:
parent
9bdb88879d
commit
1ea59731f0
2 changed files with 2 additions and 1 deletions
|
@ -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',
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue