Skip to content

Commit

Permalink
Fix: broken feature for use hooks with dol_move_uploaded_file method
Browse files Browse the repository at this point in the history
  • Loading branch information
hregis committed Mar 26, 2013
1 parent 7f4fd06 commit 33a82c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/core/class/fileupload.class.php
Expand Up @@ -436,7 +436,7 @@ protected function handleFileUpload($uploaded_file, $name, $size, $type, $error,
{
file_put_contents($file_path, fopen($uploaded_file, 'r'), FILE_APPEND);
} else {
dol_move_uploaded_file($uploaded_file, $file_path, 1);
dol_move_uploaded_file($uploaded_file, $file_path, 1, 0, 0, 0, 'userfile');
}
}
else
Expand Down

0 comments on commit 33a82c3

Please sign in to comment.