Skip to content
Snippets Groups Projects
Commit 79348690 authored by Steven Wittens's avatar Steven Wittens
Browse files

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

parent ad864fae
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment