1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-01 06:20:46 +02:00

Merge pull request #3578 from s9e/ticket/13801

[ticket/13801] Remove user dependency from text_formatter.s9e.parser
This commit is contained in:
Nicofuma
2015-05-20 00:02:41 +02:00
6 changed files with 20 additions and 35 deletions

View File

@@ -1264,6 +1264,11 @@ class parse_message extends bbcode_firstpass
$errors = $parser->get_errors();
if ($errors)
{
foreach ($errors as $i => $args)
{
// Translate each error with $user->lang()
$errors[$i] = call_user_func_array(array($user, 'lang'), $args);
}
$this->warn_msg = array_merge($this->warn_msg, $errors);
return (!$update_this_message) ? $return_message : $this->warn_msg;