Commit 98834e15 authored by Dries's avatar Dries

- Patch #49675 by robert/killes: made replacing files work.

parent c94a2dab
......@@ -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;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment