Commit 79348690 authored by Steven Wittens's avatar Steven Wittens
Browse files

#10803: file_save_data() does not pass $replace along.

parent ad864fae
......@@ -375,7 +375,7 @@ function file_save_data($data, $dest, $replace = 0) {
fwrite($fp, $data);
fclose($fp);
if (!file_move($file, $dest)) {
if (!file_move($file, $dest, $replace)) {
return 0;
}
......
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