mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-07 00:17:03 +03: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) {
|
if ($sTmp) {
|
||||||
static::backup();
|
static::backup();
|
||||||
$oArchive = new \PharData($sTmp, 0);
|
$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) {
|
if (!$bResult) {
|
||||||
throw new \Exception('Cannot extract core files: '.$oArchive->getStatusString());
|
throw new \Exception('Cannot extract core files: '.$oArchive->getStatusString());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue