Эх сурвалжийг харах

Fix abusive merge before pushing

Yannick Warnier 11 жил өмнө
parent
commit
30a12b75e7

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