mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-25 19:38:53 +00:00
- I forgot that we can add and remove prefixes :D
- A small style fix :D git-svn-id: file:///svn/phpbb/trunk@5385 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
12839c7d47
commit
8ad9a36d08
1 changed files with 4 additions and 4 deletions
|
@ -52,7 +52,7 @@ class compress
|
|||
|
||||
if ($src_path)
|
||||
{
|
||||
$this->data($src_path, '', true, stat("$phpbb_root_path$src_path"));
|
||||
$this->data($src_path, '', true, stat("$phpbb_root_path$src"));
|
||||
}
|
||||
|
||||
foreach ($filelist as $path => $file_ary)
|
||||
|
@ -63,7 +63,7 @@ class compress
|
|||
$path = (substr($path, 0, 1) == '/') ? substr($path, 1) : $path;
|
||||
$path = ($path && substr($path, -1) != '/') ? $path . '/' : $path;
|
||||
|
||||
$this->data("$src_path$path", '', true, stat("$phpbb_root_path$src_path$path"));
|
||||
$this->data("$src_path$path", '', true, stat("$phpbb_root_path$src$path"));
|
||||
}
|
||||
|
||||
foreach ($file_ary as $file)
|
||||
|
@ -73,7 +73,7 @@ class compress
|
|||
continue;
|
||||
}
|
||||
|
||||
$this->data("$src_path$path$file", implode('', file("$phpbb_root_path$src_path$path$file")), false, stat("$phpbb_root_path$src_path$path$file"));
|
||||
$this->data("$src_path$path$file", implode('', file("$phpbb_root_path$src$path$file")), false, stat("$phpbb_root_path$src$path$file"));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -243,7 +243,7 @@ class compress_zip extends compress
|
|||
{
|
||||
$str = (!empty($str)) ? $str . '/' . $folder : $folder;
|
||||
|
||||
if(!is_dir("$dst$str"))
|
||||
if (!is_dir("$dst$str"))
|
||||
{
|
||||
if (!@mkdir("$dst$str", 0777))
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue