phpBB

Code Changes

File: phpbb/install/module/install_finish/task/install_extensions.php

  Unmodified   Added   Modified   Removed
Line 13Line 13

namespace phpbb\install\module\install_finish\task;



namespace phpbb\install\module\install_finish\task;


 
use phpbb\config\db;

use phpbb\install\exception\resource_limit_reached_exception;

/**

use phpbb\install\exception\resource_limit_reached_exception;

/**

Line 31Line 32
	protected $iohandler;

/**

	protected $iohandler;

/**

	 * @var \phpbb\config\db

	 * @var db

	 */
protected $config;


	 */
protected $config;


Line 72Line 73
		$this->extension_table = $container->get_parameter('tables.ext');

$this->log = $container->get('log');

		$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->user				= $container->get('user');
$this->extension_manager = $container->get('ext.manager');

		$this->config			= $container->get('config');

 
		$this->db				= $container->get('dbal.conn');
$this->finder = new \Symfony\Component\Finder\Finder();
$this->finder->in($phpbb_root_path . 'ext/')

		$this->db				= $container->get('dbal.conn');
$this->finder = new \Symfony\Component\Finder\Finder();
$this->finder->in($phpbb_root_path . 'ext/')

Line 82Line 83
			->depth('< 3')
->files()
->name('composer.json');

			->depth('< 3')
->files()
->name('composer.json');

 

/** @var \phpbb\cache\driver\driver_interface $cache */
$cache = $container->get('cache.driver');
$cache->destroy('config');

global $config;
$config = new db(
$this->db,
$cache,
$container->get_parameter('tables.config')
);


// Make sure asset version exists in config. Otherwise we might try to
// insert the assets_version setting into the database and cause a


// Make sure asset version exists in config. Otherwise we might try to
// insert the assets_version setting into the database and cause a

Line 132Line 144
				if (isset($extensions[$ext_name]) && $extensions[$ext_name]['ext_active'])
{
// Create log

				if (isset($extensions[$ext_name]) && $extensions[$ext_name]['ext_active'])
{
// Create log

					$this->log->add('admin', ANONYMOUS, '', 'LOG_EXT_ENABLE', time(), array($ext_name));

					$this->log->add('admin', ANONYMOUS, $this->user->ip, 'LOG_EXT_ENABLE', time(), array($ext_name));

					$this->iohandler->add_success_message(array('CLI_EXTENSION_ENABLE_SUCCESS', $ext_name));
}
else

					$this->iohandler->add_success_message(array('CLI_EXTENSION_ENABLE_SUCCESS', $ext_name));
}
else