- 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:
David M 2005-12-27 17:21:01 +00:00
parent 12839c7d47
commit 8ad9a36d08

View file

@ -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))
{