aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Darricau <tristan.darricau@gmail.com>2018-07-08 18:24:55 +0200
committerTristan Darricau <tristan.darricau@gmail.com>2018-07-08 18:24:55 +0200
commitbe15d8718dedcf56a8d2277d33ce093b21479259 (patch)
tree899232f4e2b5e471269eb16bf7c5064e47094f7e
parentb0df5e31cf9576aa331c5f59ba4b1979ec5d4048 (diff)
parent49c19048237021cb130a667a64e5a1da079644b4 (diff)
downloadforums-be15d8718dedcf56a8d2277d33ce093b21479259.tar
forums-be15d8718dedcf56a8d2277d33ce093b21479259.tar.gz
forums-be15d8718dedcf56a8d2277d33ce093b21479259.tar.bz2
forums-be15d8718dedcf56a8d2277d33ce093b21479259.tar.xz
forums-be15d8718dedcf56a8d2277d33ce093b21479259.zip
Merge pull request #5269 from 3D-I/ticket/15705
[ticket/15705] fix phpbbcli language vs PHP * github.com:/phpbb/phpbb: [ticket/15705] fix phpbbcli language vs PHP
-rwxr-xr-xphpBB/bin/phpbbcli.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/phpBB/bin/phpbbcli.php b/phpBB/bin/phpbbcli.php
index 3061fee817..5ae18334d9 100755
--- a/phpBB/bin/phpbbcli.php
+++ b/phpBB/bin/phpbbcli.php
@@ -71,9 +71,12 @@ require($phpbb_root_path . 'includes/compatibility_globals.' . $phpEx);
register_compatibility_globals();
+/** @var \phpbb\config\config $config */
+$config = $phpbb_container->get('config');
+
/** @var \phpbb\language\language $language */
$language = $phpbb_container->get('language');
-$language->set_default_language($phpbb_container->get('config')['default_lang']);
+$language->set_default_language($config['default_lang']);
$language->add_lang(array('common', 'acp/common', 'cli'));
/* @var $user \phpbb\user */