Skip to content

Commit 99cb6f6

Browse files
committed
[ticket/13393] Call user->lang function directly
PHPBB3-13393
1 parent 91cd128 commit 99cb6f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

version_helper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ public function get_versions($force_update = false, $force_cache = false)
259259
}
260260
catch (\RuntimeException $exception)
261261
{
262-
throw new \RuntimeException(call_user_func_array(array($this->user, 'lang'), $exception->getMessage()));
262+
throw new \RuntimeException($this->user->lang($exception->getMessage()));
263263
}
264264
$error_string = $this->file_downloader->get_error_string();
265265

0 commit comments

Comments
 (0)