mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-02-25 07:16:21 +08:00
On upgrade #318, extractTo() must overwrite
This commit is contained in:
parent
95b7dee402
commit
4d898bfef0
1 changed files with 1 additions and 1 deletions
|
@ -196,7 +196,7 @@ abstract class Upgrade
|
|||
if ($sTmp) {
|
||||
static::backup();
|
||||
$oArchive = new \PharData($sTmp, 0);
|
||||
$bResult = $oArchive->extractTo(\rtrim(APP_VERSION_ROOT_PATH, '\\/'));
|
||||
$bResult = $oArchive->extractTo(\rtrim(APP_VERSION_ROOT_PATH, '\\/'), null, true);
|
||||
if (!$bResult) {
|
||||
throw new \Exception('Cannot extract core files: '.$oArchive->getStatusString());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue