aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/message_parser.php
diff options
context:
space:
mode:
authorJoshyPHP <s9e.dev@gmail.com>2015-04-30 23:01:28 +0200
committerJoshyPHP <s9e.dev@gmail.com>2015-05-18 02:58:33 +0200
commitdeadc0665298f18a937fc959da449e9098873c0b (patch)
tree633597f2c11943693ced5425b341a74967a9f9c0 /phpBB/includes/message_parser.php
parentc967ba7b9ba42d9cf72cd1bb0927ae5214894eda (diff)
downloadforums-deadc0665298f18a937fc959da449e9098873c0b.tar
forums-deadc0665298f18a937fc959da449e9098873c0b.tar.gz
forums-deadc0665298f18a937fc959da449e9098873c0b.tar.bz2
forums-deadc0665298f18a937fc959da449e9098873c0b.tar.xz
forums-deadc0665298f18a937fc959da449e9098873c0b.zip
[ticket/13801] Removed user dependency from text_formatter.s9e.parser
PHPBB3-13801
Diffstat (limited to 'phpBB/includes/message_parser.php')
-rw-r--r--phpBB/includes/message_parser.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/phpBB/includes/message_parser.php b/phpBB/includes/message_parser.php
index 9fe598d7fb..3edc7fe1c6 100644
--- a/phpBB/includes/message_parser.php
+++ b/phpBB/includes/message_parser.php
@@ -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;