1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 05:50:42 +02:00

[ticket/16366] Make viewtopic lang vars available in feed pages

We call add_lang('viewtopic') in feed controller and configure_user(...)
in generate_content() in order to make viewtopic language constants
avaliable for message parser when it is called from feed controller

PHPBB3-16366
This commit is contained in:
ansavin
2020-05-12 21:43:40 +03:00
committed by Marc Alexander
parent 05a58e8942
commit b3199265a2
4 changed files with 22 additions and 3 deletions

View File

@@ -49,10 +49,10 @@ class phpbb_feed_attachments_base_test extends phpbb_database_test_case
$container = new phpbb_mock_container_builder();
$this->get_test_case_helpers()->set_s9e_services($container);
$container->set('feed.quote_helper', new \phpbb\feed\quote_helper($user, $phpbb_root_path, 'php'));
$feed_helper = new \phpbb\feed\helper($config, $container, $path_helper, $container->get('text_formatter.renderer'), $user);
$db = $this->new_dbal();
$cache = new \phpbb_mock_cache();
$auth = new \phpbb\auth\auth();
$feed_helper = new \phpbb\feed\helper($auth, $config, $container, $path_helper, $container->get('text_formatter.renderer'), $user);
$content_visibility = new \phpbb\content_visibility(
$auth,
$config,