diff options
author | Marc Alexander <admin@m-a-styles.de> | 2014-11-21 21:34:02 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2014-11-21 21:37:43 +0100 |
commit | 352648f173e7b132544bf3eaa494184bec6d5aa2 (patch) | |
tree | 243a58afccaf667629201d7a909146d8fda22c36 /phpBB/phpbb/version_helper.php | |
parent | f6e7a94bd55c1c3b7a8aaed370a728c58ac34ea6 (diff) | |
download | forums-352648f173e7b132544bf3eaa494184bec6d5aa2.tar forums-352648f173e7b132544bf3eaa494184bec6d5aa2.tar.gz forums-352648f173e7b132544bf3eaa494184bec6d5aa2.tar.bz2 forums-352648f173e7b132544bf3eaa494184bec6d5aa2.tar.xz forums-352648f173e7b132544bf3eaa494184bec6d5aa2.zip |
[ticket/13358] Fix tests and use exceptions instead of user object
PHPBB3-13358
Diffstat (limited to 'phpBB/phpbb/version_helper.php')
-rw-r--r-- | phpBB/phpbb/version_helper.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/phpBB/phpbb/version_helper.php b/phpBB/phpbb/version_helper.php index 3b455ec5ba..d7f1f02678 100644 --- a/phpBB/phpbb/version_helper.php +++ b/phpBB/phpbb/version_helper.php @@ -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)) { |