mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[ticket/12324] Correctly create di container if config/ is missing from update/
PHPBB3-12324
This commit is contained in:
parent
8442f2239d
commit
df5761b370
1 changed files with 8 additions and 1 deletions
|
@ -70,7 +70,14 @@ class install_update extends module
|
||||||
$request->enable_super_globals();
|
$request->enable_super_globals();
|
||||||
|
|
||||||
// Create a normal container now
|
// Create a normal container now
|
||||||
$phpbb_container = phpbb_create_update_container($phpbb_root_path, $phpEx, $phpbb_root_path . 'install/update/new/config');
|
if (file_exists($phpbb_root_path . 'install/update/new/config'))
|
||||||
|
{
|
||||||
|
$phpbb_container = phpbb_create_update_container($phpbb_root_path, $phpEx, $phpbb_root_path . 'install/update/new/config');
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$phpbb_container = phpbb_create_update_container($phpbb_root_path, $phpEx, $phpbb_root_path . 'config');
|
||||||
|
}
|
||||||
|
|
||||||
// Writes into global $cache
|
// Writes into global $cache
|
||||||
$cache = $phpbb_container->get('cache');
|
$cache = $phpbb_container->get('cache');
|
||||||
|
|
Loading…
Add table
Reference in a new issue