Skip to content

Commit 1ea5973

Browse files
committed
[ticket/17480] Use phpBB error message text instead of thrown by GuzzleHTTP
PHPBB-17480
1 parent 9bdb888 commit 1ea5973

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

phpBB/language/en/common.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,7 @@
357357
'HIDE_ME' => 'Hide my online status this session',
358358
'HOURS' => 'Hours',
359359
'HOME' => 'Home',
360+
'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.',
360361

361362
'ICQ' => 'ICQ',
362363
'IF' => 'If',

phpBB/phpbb/file_downloader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public function get(string $host, string $directory, string $filename, int $port
8282
}
8383
catch (\RuntimeException $exception)
8484
{
85-
throw new runtime_exception($exception->getMessage());
85+
throw new runtime_exception('HTTP_HANDLER_NOT_FOUND');
8686
}
8787

8888
// Set default values for error variables

0 commit comments

Comments
 (0)