diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2015-01-30 18:02:04 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2015-01-30 18:05:13 +0100 |
commit | 69450c715244e41a26e63470bd292778ed25438a (patch) | |
tree | 94d2cfea914525a531ca91aa181dccb9295e1e7b /phpBB/phpbb/version_helper.php | |
parent | e5f2eee167775dd8f7f1920a9d25fcf70919f8dd (diff) | |
download | forums-69450c715244e41a26e63470bd292778ed25438a.tar forums-69450c715244e41a26e63470bd292778ed25438a.tar.gz forums-69450c715244e41a26e63470bd292778ed25438a.tar.bz2 forums-69450c715244e41a26e63470bd292778ed25438a.tar.xz forums-69450c715244e41a26e63470bd292778ed25438a.zip |
[ticket/13556] Fix exception translation with filedownloader
PHPBB3-13556
Diffstat (limited to 'phpBB/phpbb/version_helper.php')
-rw-r--r-- | phpBB/phpbb/version_helper.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/phpBB/phpbb/version_helper.php b/phpBB/phpbb/version_helper.php index dc62f06fb2..e4f68f5aab 100644 --- a/phpBB/phpbb/version_helper.php +++ b/phpBB/phpbb/version_helper.php @@ -257,9 +257,10 @@ class version_helper try { $info = $this->file_downloader->get($this->host, $this->path, $this->file); } - catch (\RuntimeException $exception) + catch (\phpbb\exception\runtime_exception $exception) { - throw new \RuntimeException($this->user->lang($exception->getMessage())); + $prepare_parameters = array_merge(array($exception->getMessage()), $exception->get_parameters()); + throw new \RuntimeException(call_user_func_array(array($this->user, 'lang'), $prepare_parameters)); } $error_string = $this->file_downloader->get_error_string(); |