aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/install
diff options
context:
space:
mode:
authorMate Bartus <mate.bartus@gmail.com>2015-10-17 15:02:09 +0200
committerMate Bartus <mate.bartus@gmail.com>2015-10-17 15:02:09 +0200
commit22b9f35bdfd878d74536f26bc5dc249255b05480 (patch)
tree19a3e3367fc11c93ee996ba70d552998498c0811 /phpBB/install
parentfb434adf88fa070fd938cdf4c74f2792692be6c2 (diff)
downloadforums-22b9f35bdfd878d74536f26bc5dc249255b05480.tar
forums-22b9f35bdfd878d74536f26bc5dc249255b05480.tar.gz
forums-22b9f35bdfd878d74536f26bc5dc249255b05480.tar.bz2
forums-22b9f35bdfd878d74536f26bc5dc249255b05480.tar.xz
forums-22b9f35bdfd878d74536f26bc5dc249255b05480.zip
[ticket/13371] Add language files to the service as well
PHPBB3-13371
Diffstat (limited to 'phpBB/install')
-rw-r--r--phpBB/install/index.php5
1 files changed, 5 insertions, 0 deletions
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(