mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-23 06:48:41 +00:00
Fix path
This commit is contained in:
parent
823f161451
commit
d708546c27
|
|
@ -56,12 +56,12 @@ class TarGz implements ArchiveInterface
|
|||
return false;
|
||||
}
|
||||
|
||||
if (!Gz::unpack($source, $destination . File::name($source) . '.tmp')) {
|
||||
if (!Gz::unpack($source, $destination . '/' . File::name($source) . '.tmp')) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$unpacked = Tar::unpack($destination . File::name($source) . '.tmp', $destination);
|
||||
\unlink($destination . File::name($source) . '.tmp');
|
||||
$unpacked = Tar::unpack($destination . '/' . File::name($source) . '.tmp', $destination);
|
||||
\unlink($destination . '/' . File::name($source) . '.tmp');
|
||||
|
||||
return $unpacked;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user