summaryrefslogtreecommitdiff
path: root/includes/file.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-02-22 19:16:37 +0000
committerDries Buytaert <dries@buytaert.net>2006-02-22 19:16:37 +0000
commit98834e15e34d2b8f2d4f60a68d91ff4b4dabfdbf (patch)
treee76c7a84b422e0534ae5b76c6c406c7e92c432cb /includes/file.inc
parentc94a2dabb012b7ec0f9705f405e9f5f4ee3c75bd (diff)
downloadbrdo-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.inc2
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;
}
}