1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-04 07:47:34 +02:00

[ticket/13801] Removed user dependency from text_formatter.s9e.parser

PHPBB3-13801
This commit is contained in:
JoshyPHP
2015-04-30 23:01:28 +02:00
parent c967ba7b9b
commit deadc06652
5 changed files with 13 additions and 31 deletions

View File

@@ -1254,6 +1254,10 @@ class parse_message extends bbcode_firstpass
$errors = $parser->get_errors();
if ($errors)
{
foreach ($errors as $i => $args)
{
$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;