mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/13358] Fix tests and use exceptions instead of user object
PHPBB3-13358
This commit is contained in:
@@ -257,7 +257,13 @@ class version_helper
|
||||
$errstr = $errno = '';
|
||||
$this->file_downloader->set_error_number($errno)
|
||||
->set_error_string($errstr);
|
||||
$info = $this->file_downloader->get($this->host, $this->path, $this->file);
|
||||
try {
|
||||
$info = $this->file_downloader->get($this->host, $this->path, $this->file);
|
||||
}
|
||||
catch (\RuntimeException $exception)
|
||||
{
|
||||
throw new \RuntimeException(call_user_func_array(array($this->user, 'lang'), $exception->getMessage()));
|
||||
}
|
||||
|
||||
if (!empty($errstr))
|
||||
{
|
||||
|
Reference in New Issue
Block a user