mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/16688] Do not restore current working dir before json file restoring
PHPBB3-16688
This commit is contained in:
parent
d4d26987e5
commit
6404ed2502
1 changed files with 2 additions and 2 deletions
|
@ -185,16 +185,16 @@ class installer
|
|||
}
|
||||
catch (\Exception $e)
|
||||
{
|
||||
$this->restore_cwd();
|
||||
$this->restore_ext_json_file();
|
||||
$this->restore_cwd();
|
||||
|
||||
throw new runtime_exception('COMPOSER_CANNOT_INSTALL', [], $e);
|
||||
}
|
||||
|
||||
if ($result !== 0)
|
||||
{
|
||||
$this->restore_cwd();
|
||||
$this->restore_ext_json_file();
|
||||
$this->restore_cwd();
|
||||
|
||||
throw new runtime_exception($io->get_composer_error(), []);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue