From: <gi...@ma...> - 2010-12-25 06:36:04
|
The branch, master-1.2.x has been updated via 650b8358c5d4595875310479295efc4bca7fadee (commit) from be34e61f3c60a903e201dc1cf996b681d23def04 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 650b8358c5d4595875310479295efc4bca7fadee Author: SL-Gundam <slg...@gm...> Date: Sat Nov 20 19:40:56 2010 +0100 Fix #12547: FILE_MOVE_FAILED changed to ERROR_FILE_MOVE_FAILED There were some incorrect references to error constants that didn't exist. They must be prefixed with ERROR_. Signed-off-by: SL-Gundam <slg...@gm...> Signed-off-by: David Hicks <hic...@op...> ----------------------------------------------------------------------- Summary of changes: core/file_api.php | 2 +- proj_doc_update.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) ----------------------------------------------------------------------- commit 650b8358c5d4595875310479295efc4bca7fadee Author: SL-Gundam <slg...@gm...> Date: Sat Nov 20 19:40:56 2010 +0100 Fix #12547: FILE_MOVE_FAILED changed to ERROR_FILE_MOVE_FAILED There were some incorrect references to error constants that didn't exist. They must be prefixed with ERROR_. Signed-off-by: SL-Gundam <slg...@gm...> Signed-off-by: David Hicks <hic...@op...> diff --git a/core/file_api.php b/core/file_api.php index 3c61769..ff81248 100644 --- a/core/file_api.php +++ b/core/file_api.php @@ -690,7 +690,7 @@ function file_add( $p_bug_id, $p_file, $p_table = 'bug', $p_title = '', $p_desc } if( !move_uploaded_file( $t_tmp_file, $t_disk_file_name ) ) { - trigger_error( FILE_MOVE_FAILED, ERROR ); + trigger_error( ERROR_FILE_MOVE_FAILED, ERROR ); } chmod( $t_disk_file_name, config_get( 'attachments_file_permissions' ) ); diff --git a/proj_doc_update.php b/proj_doc_update.php index e092588..29f2cf0 100644 --- a/proj_doc_update.php +++ b/proj_doc_update.php @@ -95,7 +95,7 @@ file_delete_local( $t_disk_file_name ); } if ( !move_uploaded_file( $v_tmp_name, $t_disk_file_name ) ) { - trigger_error( FILE_MOVE_FAILED, ERROR ); + trigger_error( ERROR_FILE_MOVE_FAILED, ERROR ); } chmod( $t_disk_file_name, config_get( 'attachments_file_permissions' ) ); ----------------------------------------------------------------------- -- Mantis Bug Tracker |