diff options
author | Marc Alexander <admin@m-a-styles.de> | 2018-12-16 15:46:08 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2018-12-16 15:46:08 +0100 |
commit | 358ddc95e8e3ca2480cfe0a59b5ff8fc62592d1c (patch) | |
tree | e3f7626a46a4819e4831fd46a84d88d76d3d7b76 /phpBB/posting.php | |
parent | b7243fad62a61a3f8fb8e4417aec847b89cea508 (diff) | |
parent | 087bf6fd35913152129eed97005953ac3979002a (diff) | |
download | forums-358ddc95e8e3ca2480cfe0a59b5ff8fc62592d1c.tar forums-358ddc95e8e3ca2480cfe0a59b5ff8fc62592d1c.tar.gz forums-358ddc95e8e3ca2480cfe0a59b5ff8fc62592d1c.tar.bz2 forums-358ddc95e8e3ca2480cfe0a59b5ff8fc62592d1c.tar.xz forums-358ddc95e8e3ca2480cfe0a59b5ff8fc62592d1c.zip |
Merge pull request #5466 from marc1706/ticket/15893
[ticket/15893] Pass needed language class directly to format quote
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r-- | phpBB/posting.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php index e2329d610d..59be983987 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -846,6 +846,7 @@ if ($load && ($mode == 'reply' || $mode == 'quote' || $mode == 'post') && $post_ load_drafts($topic_id, $forum_id); } +/** @var \phpbb\textformatter\utils_interface $bbcode_utils */ $bbcode_utils = $phpbb_container->get('text_formatter.utils'); if ($submit || $preview || $refresh) @@ -1648,7 +1649,9 @@ if ($generate_quote) 'user_id' => $post_data['poster_id'], ); - phpbb_format_quote($config['allow_bbcode'], $quote_attributes, $bbcode_utils, $message_parser); + /** @var \phpbb\language\language $language */ + $language = $phpbb_container->get('language'); + phpbb_format_quote($language, $message_parser, $bbcode_utils, $bbcode_status, $quote_attributes); } if (($mode == 'reply' || $mode == 'quote') && !$submit && !$preview && !$refresh) |