[ticket/13371] Add language files to the service as well

PHPBB3-13371
This commit is contained in:
Mate Bartus 2015-10-17 15:02:09 +02:00
parent fb434adf88
commit 22b9f35bdf

View file

@ -305,6 +305,11 @@ $template = new \phpbb\template\twig\twig(
array($phpbb_container->get('template.twig.extensions.phpbb'))
);
/** @var \phpbb\language\language $lang_service */
$lang_service = $phpbb_container->get('language');
$lang_service->add_lang($load_lang_files);
$lang_service->set_user_language($language);
$paths = array($phpbb_root_path . 'install/update/new/adm/style', $phpbb_admin_path . 'style');
$paths = array_filter($paths, 'is_dir');
$template->set_custom_style(array(