1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-04-14 12:52:08 +02:00

Merge pull request #6010 from marc1706/ticket/16530

[ticket/16530] Ensure extensions can be installed during installation
This commit is contained in:
Marc Alexander 2020-06-19 22:36:16 +02:00
commit e7186f41ed
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995

View File

@ -73,6 +73,7 @@ class install_extensions extends \phpbb\install\task_base
$this->extension_table = $container->get_parameter('tables.ext');
$this->log = $container->get('log');
$this->config = $container->get('config');
$this->user = $container->get('user');
$this->extension_manager = $container->get('ext.manager');
$this->db = $container->get('dbal.conn');
@ -87,15 +88,13 @@ class install_extensions extends \phpbb\install\task_base
$cache = $container->get('cache.driver');
$cache->destroy('config');
$this->config = new db(
global $config;
$config = new db(
$this->db,
$cache,
$container->get_parameter('tables.config')
);
global $config;
$config = $this->config;
// Make sure asset version exists in config. Otherwise we might try to
// insert the assets_version setting into the database and cause a
// duplicate entry error.