Skip to content

Commit 4a6b472

Browse files
Merge pull request #21 from theonly27/theonly
Fixed issue about filename that causes the delete and restore option to malfunction...
2 parents e13eb2a + 3bc4431 commit 4a6b472

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BackupManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function getBackups()
5050
$name = str_replace(config('backupmanager.backups.backup_path')."/","",$file->path());
5151
$array = explode('_', $name);
5252
$filesData[] = [
53-
'name' => end($array),
53+
'name' => $name,
5454
'size_raw' => $file->fileSize(),
5555
'size' => $this->formatSizeUnits($file->fileSize()),
5656
'type' => $array[0] === 'd' ? 'Database' : 'Files',

0 commit comments

Comments
 (0)