1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-04-02 15:03:04 +02:00

Merge pull request #4773 from VSEphpbb/ticket/15154

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

* github.com:phpbb/phpbb:
  [ticket/15154] Load compatibility globals into the CLI installer
This commit is contained in:
Tristan Darricau 2017-04-18 23:05:52 +02:00
commit 5e12ca7929
No known key found for this signature in database
GPG Key ID: 817043C2E29DB881

View File

@ -39,6 +39,9 @@ $input = new ArgvInput();
// Enable superglobals for cli support
$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 */
$phpbb_filesystem = $phpbb_installer_container->get('filesystem');