diff options
author | Andreas Fischer <bantu@phpbb.com> | 2014-05-02 19:01:56 +0200 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2014-05-02 19:01:56 +0200 |
commit | c193bfc4966e12b4a0e7bcd0d483f9c2ec69dda3 (patch) | |
tree | 5629e4e0f58b8c1e9570d2aad7f1edb101f7d053 | |
parent | d798184d08f9da9fb4c011959d612a5395341fd9 (diff) | |
download | forums-c193bfc4966e12b4a0e7bcd0d483f9c2ec69dda3.tar forums-c193bfc4966e12b4a0e7bcd0d483f9c2ec69dda3.tar.gz forums-c193bfc4966e12b4a0e7bcd0d483f9c2ec69dda3.tar.bz2 forums-c193bfc4966e12b4a0e7bcd0d483f9c2ec69dda3.tar.xz forums-c193bfc4966e12b4a0e7bcd0d483f9c2ec69dda3.zip |
[ticket/12473] Add more compatibility to phpBB Console Application.
PHPBB3-12473
-rwxr-xr-x | phpBB/bin/phpbbcli.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/phpBB/bin/phpbbcli.php b/phpBB/bin/phpbbcli.php index 49f4ca13e7..02d6b88943 100755 --- a/phpBB/bin/phpbbcli.php +++ b/phpBB/bin/phpbbcli.php @@ -22,6 +22,7 @@ require($phpbb_root_path . 'config.' . $phpEx); require($phpbb_root_path . 'includes/constants.' . $phpEx); require($phpbb_root_path . 'includes/functions.' . $phpEx); require($phpbb_root_path . 'includes/functions_container.' . $phpEx); +require($phpbb_root_path . 'includes/utf/utf_tools.' . $phpEx); require($phpbb_root_path . 'phpbb/class_loader.' . $phpEx); $phpbb_class_loader = new \phpbb\class_loader('phpbb\\', "{$phpbb_root_path}phpbb/", $phpEx); @@ -30,6 +31,8 @@ $phpbb_class_loader_ext = new \phpbb\class_loader('\\', "{$phpbb_root_path}ext/" $phpbb_class_loader_ext->register(); $phpbb_container = phpbb_create_update_container($phpbb_root_path, $phpEx, "$phpbb_root_path/config"); +$phpbb_container->get('request')->enable_super_globals(); +require($phpbb_root_path . 'includes/compatibility_globals.' . $phpEx); $application = new \phpbb\console\application('phpBB Console', PHPBB_VERSION); $application->register_container_commands($phpbb_container); |