Skip to content

Commit

Permalink
Fix #11687: use of incorrect error constant
Browse files Browse the repository at this point in the history
  • Loading branch information
dregad committed Jun 28, 2012
1 parent 1525186 commit 21e1a24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/file_api.php
Expand Up @@ -1006,7 +1006,7 @@ function file_move_bug_attachments( $p_bug_id, $p_project_id_to ) {
chmod( $t_disk_file_name_from, 0775 );
if ( !rename( $t_disk_file_name_from, $t_disk_file_name_to ) ) {
if ( !copy( $t_disk_file_name_from, $t_disk_file_name_to ) ) {
trigger_error( FILE_MOVE_FAILED, ERROR );
trigger_error( ERROR_FILE_MOVE_FAILED, ERROR );
}
file_delete_local( $t_disk_file_name_from );
}
Expand Down

0 comments on commit 21e1a24

Please sign in to comment.