mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-22 17:41:24 +02:00
[ticket/16688] Do not restore current working dir before json file restoring
PHPBB3-16688
This commit is contained in:
@@ -185,16 +185,16 @@ class installer
|
|||||||
}
|
}
|
||||||
catch (\Exception $e)
|
catch (\Exception $e)
|
||||||
{
|
{
|
||||||
$this->restore_cwd();
|
|
||||||
$this->restore_ext_json_file();
|
$this->restore_ext_json_file();
|
||||||
|
$this->restore_cwd();
|
||||||
|
|
||||||
throw new runtime_exception('COMPOSER_CANNOT_INSTALL', [], $e);
|
throw new runtime_exception('COMPOSER_CANNOT_INSTALL', [], $e);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($result !== 0)
|
if ($result !== 0)
|
||||||
{
|
{
|
||||||
$this->restore_cwd();
|
|
||||||
$this->restore_ext_json_file();
|
$this->restore_ext_json_file();
|
||||||
|
$this->restore_cwd();
|
||||||
|
|
||||||
throw new runtime_exception($io->get_composer_error(), []);
|
throw new runtime_exception($io->get_composer_error(), []);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user