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

Merge branch '3.2.x'

This commit is contained in:
Máté Bartus 2016-12-08 20:56:04 +01:00
commit e5baca179d

View File

@ -243,12 +243,18 @@ class installer
}
else
{
// Start session and try to apply session id
$auth = $this->container_factory->get('auth');
// Start session if not installing and get user object
// to allow redirecting to ACP
$user = $this->container_factory->get('user');
$user->session_begin();
$auth->acl($user->data);
$user->setup();
if (!isset($module) || !($module instanceof \phpbb\install\module\install_finish\module))
{
$auth = $this->container_factory->get('auth');
$user->session_begin();
$auth->acl($user->data);
$user->setup();
}
$phpbb_root_path = $this->container_factory->get_parameter('core.root_path');
$acp_url = append_sid($phpbb_root_path . 'adm/index.php', 'i=acp_help_phpbb&mode=help_phpbb', true, $user->session_id);