mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/13371] Add language files to the service as well
PHPBB3-13371
This commit is contained in:
parent
fb434adf88
commit
22b9f35bdf
1 changed files with 5 additions and 0 deletions
|
@ -305,6 +305,11 @@ $template = new \phpbb\template\twig\twig(
|
||||||
array($phpbb_container->get('template.twig.extensions.phpbb'))
|
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($phpbb_root_path . 'install/update/new/adm/style', $phpbb_admin_path . 'style');
|
||||||
$paths = array_filter($paths, 'is_dir');
|
$paths = array_filter($paths, 'is_dir');
|
||||||
$template->set_custom_style(array(
|
$template->set_custom_style(array(
|
||||||
|
|
Loading…
Add table
Reference in a new issue