From 22b9f35bdfd878d74536f26bc5dc249255b05480 Mon Sep 17 00:00:00 2001 From: Mate Bartus Date: Sat, 17 Oct 2015 15:02:09 +0200 Subject: [PATCH] [ticket/13371] Add language files to the service as well PHPBB3-13371 --- phpBB/install/index.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/phpBB/install/index.php b/phpBB/install/index.php index 5a5afe79d9..a578e664cd 100644 --- a/phpBB/install/index.php +++ b/phpBB/install/index.php @@ -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(