diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-02-22 19:16:37 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-02-22 19:16:37 +0000 |
commit | 98834e15e34d2b8f2d4f60a68d91ff4b4dabfdbf (patch) | |
tree | e76c7a84b422e0534ae5b76c6c406c7e92c432cb /includes/file.inc | |
parent | c94a2dabb012b7ec0f9705f405e9f5f4ee3c75bd (diff) | |
download | brdo-98834e15e34d2b8f2d4f60a68d91ff4b4dabfdbf.tar.gz brdo-98834e15e34d2b8f2d4f60a68d91ff4b4dabfdbf.tar.bz2 |
- Patch #49675 by robert/killes: made replacing files work.
Diffstat (limited to 'includes/file.inc')
-rw-r--r-- | includes/file.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/file.inc b/includes/file.inc index 80fb3f9a3..e9529b389 100644 --- a/includes/file.inc +++ b/includes/file.inc @@ -388,7 +388,7 @@ function file_save_upload($source, $dest = 0, $replace = FILE_EXISTS_RENAME) { $temporary = 1; if (is_file($file->filepath)) { // If this file was uploaded by this user before replace the temporary copy. - $replace = 1; + $replace = FILE_EXISTS_REPLACE; } } |