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 else
{ {
// Start session and try to apply session id // Start session if not installing and get user object
$auth = $this->container_factory->get('auth'); // to allow redirecting to ACP
$user = $this->container_factory->get('user'); $user = $this->container_factory->get('user');
$user->session_begin(); if (!isset($module) || !($module instanceof \phpbb\install\module\install_finish\module))
$auth->acl($user->data); {
$user->setup(); $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'); $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); $acp_url = append_sid($phpbb_root_path . 'adm/index.php', 'i=acp_help_phpbb&mode=help_phpbb', true, $user->session_id);