1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-10-18 02:06:12 +02:00

[ticket/11574] Only fall back to install/update versions, when IN_INSTALL ;)

PHPBB3-11574
This commit is contained in:
Joas Schilling
2013-07-06 19:35:42 +02:00
parent fe7823b668
commit 3bccd10ccd
2 changed files with 6 additions and 4 deletions

View File

@@ -51,7 +51,8 @@ class phpbb_di_extension_core extends Extension
*/
public function load(array $config, ContainerBuilder $container)
{
if (file_exists($this->root_path . 'install/update/new/config/services.yml'))
// If we are in install, try to use the updated version, when available
if (defined('IN_INSTALL') && file_exists($this->root_path . 'install/update/new/config/services.yml'))
{
$loader = new YamlFileLoader($container, new FileLocator(phpbb_realpath($this->root_path . 'install/update/new/config')));
$loader->load('services.yml');