Browse Source

Fix abusive merge before pushing

Yannick Warnier 11 years ago
parent
commit
30a12b75e7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main/inc/lib/fileUpload.lib.php

+ 1 - 1
main/inc/lib/fileUpload.lib.php

@@ -371,7 +371,7 @@ function handle_uploaded_document(
 						  Display::display_error_message($clean_name.' '.get_lang('UplAlreadyExists'));
 						}
 					} else {
-						if (@move_uploaded_file($uploaded_file['tmp_name'], $store_path)) {
+						if (moveUploadedFile($uploaded_file, $store_path)) {
 						    chmod($store_path, $files_perm);
 
 							// Put the document data in the database