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:
@@ -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,
|
||||
|
Reference in New Issue
Block a user