mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02: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:
@@ -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))
|
||||
{
|
||||
|
Reference in New Issue
Block a user