--- E:\mantis\mantis_current\core\checkin.php Wed Aug 09 11:05:19 2006 +++ E:\mantis\mantis_1.0.5\core\checkin.php Wed Aug 09 11:11:49 2006 @@ -35,33 +35,21 @@ # Detect references to issues + concat all lines to have the comment log. $t_commit_regexp = config_get( 'source_control_regexp' ); $t_commit_fixed_regexp = config_get( 'source_control_fixed_regexp' ); - $t_issue_number_regexp = config_get( 'source_countrol_issue_number_regexp' ); $t_comment = ''; $t_issues = array(); $t_fixed_issues = array(); while ( ( $t_line = fgets( STDIN, 1024 ) ) ) { $t_comment .= $t_line; - - # get the full text of the line with issues in it if ( preg_match_all( $t_commit_regexp, $t_line, $t_matches ) ) { - $t_issue_full_text = $t_matches[0][0]; - # now extract all the issue numbers - if ( preg_match_all( $t_issue_number_regexp, $t_issue_full_text, $t_matches ) ) { for ( $i = 0; $i < count( $t_matches[0] ); ++$i ) { - $t_issues[] = $t_matches[0][$i]; - } + $t_issues[] = $t_matches[1][$i]; } } - # get the full text of the line with fixed issues in it if ( preg_match_all( $t_commit_fixed_regexp, $t_line, $t_matches ) ) { - $t_fixed_issue_full_text = $t_matches[0][0]; - # now extract all the issue numbers - if ( preg_match_all( $t_issue_number_regexp, $t_fixed_issue_full_text, $t_matches ) ) { for ( $i = 0; $i < count( $t_matches[0] ); ++$i ) { - $t_fixed_issues[] = $t_matches[0][$i]; - } + $t_fixed_issues[] = $t_matches[1][$i]; } } }