Commit 10f7a8fa authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#193331 by ufku: the replace parameter was not used in file_save_upload() as documented, fix this

parent 279d2d4c
...@@ -543,7 +543,7 @@ function file_save_upload($source, $validators = array(), $dest = FALSE, $replac ...@@ -543,7 +543,7 @@ function file_save_upload($source, $validators = array(), $dest = FALSE, $replac
} }
$file->source = $source; $file->source = $source;
$file->destination = file_destination(file_create_path($dest .'/'. $file->filename), FILE_EXISTS_RENAME); $file->destination = file_destination(file_create_path($dest .'/'. $file->filename), $replace);
$file->filesize = $_FILES['files']['size'][$source]; $file->filesize = $_FILES['files']['size'][$source];
// Call the validation functions. // Call the validation functions.
......
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