From 8ad9a36d08d7a81e0bbfe45e56f75d40cb72384f Mon Sep 17 00:00:00 2001 From: David M Date: Tue, 27 Dec 2005 17:21:01 +0000 Subject: [PATCH] - 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 --- phpBB/includes/functions_compress.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/phpBB/includes/functions_compress.php b/phpBB/includes/functions_compress.php index 3d8a003051..0b24ec14dc 100644 --- a/phpBB/includes/functions_compress.php +++ b/phpBB/includes/functions_compress.php @@ -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)) {