diff options
author | Sashi20 | 2017-08-10 10:40:13 +0530 |
---|---|---|
committer | GitHub | 2017-08-10 10:40:13 +0530 |
commit | c4270187d55aa031da566611417354dde4c53758 (patch) | |
tree | d26c6ab5872c060bacada831ec99f8c36e4bc07f | |
parent | f28f70b5727b17dec4986f01ccb1f871373028b1 (diff) | |
parent | 9063708456604efc0e561285f73804d1c068e876 (diff) | |
download | dwsim_flowsheet-c4270187d55aa031da566611417354dde4c53758.tar.gz dwsim_flowsheet-c4270187d55aa031da566611417354dde4c53758.tar.bz2 dwsim_flowsheet-c4270187d55aa031da566611417354dde4c53758.zip |
Merge branch 'drupal_7.x' into drupal_7.x
-rwxr-xr-x | upload_code.inc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/upload_code.inc b/upload_code.inc index 0770f9a..4a2f184 100755 --- a/upload_code.inc +++ b/upload_code.inc @@ -902,6 +902,7 @@ function dwsim_flowsheet_upload_abstract_code_form_submit($form, &$form_state) { //unlink($root_path . $dest_path . $_FILES['files']['name'][$file_form_name]); move_uploaded_file($_FILES['files']['tmp_name'][$file_form_name], $root_path . $dest_path . $_FILES['files']['name'][$file_form_name]); + drupal_set_message(t("File !filename already exists hence overwirtten the exisitng file ", array( '!filename' => $_FILES['files']['name'][$file_form_name] )), 'error'); |