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

Merge remote-tracking branch 'Elsensee/ticket/12324' into develop-ascraeus

* Elsensee/ticket/12324:
  [ticket/12324] Correctly create di container if config/ is missing from update/
This commit is contained in:
Joas Schilling
2014-03-30 13:22:44 +02:00

View File

@@ -70,7 +70,14 @@ class install_update extends module
$request->enable_super_globals();
// 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
$cache = $phpbb_container->get('cache');