Skip to content
This repository has been archived by the owner on Jul 23, 2020. It is now read-only.

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
timmyomahony committed Jan 29, 2020
2 parents c9d1987 + ff962f7 commit 0702754
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/SyncService.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function restoreVolumesBackup($filename)
$backupPath = Craft::$app->getPath()->getDbBackupPath() . DIRECTORY_SEPARATOR . pathinfo($filename, PATHINFO_FILENAME) . '.zip';
$tmpDir = Craft::$app->getPath()->getTempPath() . DIRECTORY_SEPARATOR . strtolower(StringHelper::randomString(10));

ZipHelper::unzip($path, $tmpDir);
ZipHelper::unzip($backupPath, $tmpDir);

$folders = array_diff(scandir($tmpDir), array('.', '..'));
foreach ($folders as $folder) {
Expand Down

0 comments on commit 0702754

Please sign in to comment.