[ticket/15154] Load compatibility globals into the CLI installer

PHPBB3-15154
This commit is contained in:
Matt Friedman 2017-03-26 23:40:24 -07:00
parent 835d8f429d
commit a10129e6f4

View file

@ -39,6 +39,9 @@ $input = new ArgvInput();
// Enable superglobals for cli support // Enable superglobals for cli support
$phpbb_installer_container->get('request')->enable_super_globals(); $phpbb_installer_container->get('request')->enable_super_globals();
// Load compatibility globals to access deprecated globals
require($phpbb_root_path . 'includes/compatibility_globals.' . $phpEx);
/** @var \phpbb\filesystem\filesystem $phpbb_filesystem */ /** @var \phpbb\filesystem\filesystem $phpbb_filesystem */
$phpbb_filesystem = $phpbb_installer_container->get('filesystem'); $phpbb_filesystem = $phpbb_installer_container->get('filesystem');