mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
[ticket/7296] Exporting styles to tar creates corrupted archives.
Add the folders to the archive before putting the files inside, seems to break the tar-archives. PHPBB3-7296
This commit is contained in:
@@ -53,13 +53,18 @@ class compress
|
||||
$filelist = filelist("$phpbb_root_path$src", '', '*');
|
||||
krsort($filelist);
|
||||
|
||||
/**
|
||||
* Commented out, as adding the folders produces corrupted archives
|
||||
if ($src_path)
|
||||
{
|
||||
$this->data($src_path, '', true, stat("$phpbb_root_path$src"));
|
||||
}
|
||||
*/
|
||||
|
||||
foreach ($filelist as $path => $file_ary)
|
||||
{
|
||||
/**
|
||||
* Commented out, as adding the folders produces corrupted archives
|
||||
if ($path)
|
||||
{
|
||||
// Same as for src_path
|
||||
@@ -68,6 +73,7 @@ class compress
|
||||
|
||||
$this->data("$src_path$path", '', true, stat("$phpbb_root_path$src$path"));
|
||||
}
|
||||
*/
|
||||
|
||||
foreach ($file_ary as $file)
|
||||
{
|
||||
|
Reference in New Issue
Block a user