From: <jl...@us...> - 2002-08-27 21:27:26
|
Update of /cvsroot/mantisbt/mantisbt In directory usw-pr-cvs1:/tmp/cvs-serv17883 Modified Files: manage_proj_ver_add.php manage_proj_ver_update.php Log Message: Cleaned up version_api.php Index: manage_proj_ver_add.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/manage_proj_ver_add.php,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- manage_proj_ver_add.php 27 Aug 2002 04:26:42 -0000 1.12 +++ manage_proj_ver_add.php 27 Aug 2002 21:27:23 -0000 1.13 @@ -15,7 +15,7 @@ $result = 0; # check for empty case or duplicate - if ( !empty( $f_version )&&( !is_duplicate_version( $f_project_id, $f_version ) ) ) { + if ( !empty( $f_version )&&( !version_is_duplicate( $f_project_id, $f_version ) ) ) { $result = version_add( $f_project_id, $f_version ); } @@ -34,7 +34,7 @@ <?php if ( $result ) { # SUCCESS PRINT $s_operation_successful.'<p>'; - } else if ( is_duplicate_version( $f_project_id, $f_version )) { + } else if ( version_is_duplicate( $f_project_id, $f_version )) { PRINT $MANTIS_ERROR[ERROR_DUPLICATE_VERSION] . '<p>'; } else { # FAILURE print_sql_error( $query ); Index: manage_proj_ver_update.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/manage_proj_ver_update.php,v retrieving revision 1.14 retrieving revision 1.15 diff -u -d -r1.14 -r1.15 --- manage_proj_ver_update.php 27 Aug 2002 04:26:42 -0000 1.14 +++ manage_proj_ver_update.php 27 Aug 2002 21:27:23 -0000 1.15 @@ -20,7 +20,7 @@ # check for duplicate (don't care for date_order at this stage, because no two versions should # have the same name even if they have different time stamps. - if ( !is_duplicate_version( $f_project_id, $f_version, '0', $f_orig_version ) ) { + if ( !version_is_duplicate( $f_project_id, $f_version, '0', $f_orig_version ) ) { $result = version_update( $f_project_id, $f_version, $f_date_order, $f_orig_version ); if ( !$result ) { break; @@ -50,7 +50,7 @@ <?php if ( $result ) { # SUCCESS PRINT $s_operation_successful.'<p>'; - } else if ( is_duplicate_version( $f_project_id, $f_version, '0', $f_orig_version )) { + } else if ( version_is_duplicate( $f_project_id, $f_version, '0', $f_orig_version )) { PRINT $MANTIS_ERROR[ERROR_DUPLICATE_VERSION].'<p>'; } else { # FAILURE print_sql_error( $query ); |