mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[feature/auth-refactor] Fix the actual cause of test failures
Enables super globals before the new container is instantiated in the final step of installation to prevent issues caused by trying to create a phpbb_request object when super globals are disabled. PHPBB3-9734
This commit is contained in:
@@ -53,7 +53,7 @@ class install_install extends module
|
||||
function main($mode, $sub)
|
||||
{
|
||||
global $lang, $template, $language, $phpbb_root_path, $phpEx;
|
||||
global $phpbb_container, $cache, $phpbb_log;
|
||||
global $phpbb_container, $cache, $phpbb_log, $request;
|
||||
|
||||
switch ($sub)
|
||||
{
|
||||
@@ -102,6 +102,9 @@ class install_install extends module
|
||||
break;
|
||||
|
||||
case 'final':
|
||||
// Enable super globals to prevent issues with the new phpbb_request object
|
||||
$request->enable_super_globals();
|
||||
|
||||
// Create a normal container now
|
||||
$phpbb_container = phpbb_create_default_container($phpbb_root_path, $phpEx);
|
||||
|
||||
|
Reference in New Issue
Block a user