Skip to content

Commit

Permalink
Remove unused parameters in string_get_bug_view_url calls
Browse files Browse the repository at this point in the history
  • Loading branch information
atrol committed Nov 3, 2015
1 parent b649c9c commit cd34053
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core/print_api.php
Expand Up @@ -153,7 +153,7 @@ function print_header_redirect_view( $p_bug_id ) {
* @return void
*/
function print_successful_redirect_to_bug( $p_bug_id ) {
$t_url = string_get_bug_view_url( $p_bug_id, auth_get_current_user_id() );
$t_url = string_get_bug_view_url( $p_bug_id );

print_successful_redirect( $t_url );
}
Expand Down
6 changes: 3 additions & 3 deletions core/string_api.php
Expand Up @@ -627,7 +627,7 @@ function string_get_bug_view_link( $p_bug_id, $p_user_id = null, $p_detail_info
} else {
$t_link .= config_get_global( 'short_path' );
}
$t_link .= string_get_bug_view_url( $p_bug_id, $p_user_id ) . '"';
$t_link .= string_get_bug_view_url( $p_bug_id ) . '"';
if( $p_detail_info ) {
$t_summary = string_attribute( bug_get_field( $p_bug_id, 'summary' ) );
$t_project_id = bug_get_field( $p_bug_id, 'project_id' );
Expand Down Expand Up @@ -713,7 +713,7 @@ function string_get_bugnote_view_url( $p_bug_id, $p_bugnote_id ) {
* @return string
*/
function string_get_bugnote_view_url_with_fqdn( $p_bug_id, $p_bugnote_id, $p_user_id = null ) {
return config_get( 'path' ) . string_get_bug_view_url( $p_bug_id, $p_user_id ) . '#c' . $p_bugnote_id;
return config_get( 'path' ) . string_get_bug_view_url( $p_bug_id ) . '#c' . $p_bugnote_id;
}

/**
Expand All @@ -725,7 +725,7 @@ function string_get_bugnote_view_url_with_fqdn( $p_bug_id, $p_bugnote_id, $p_use
* @return string
*/
function string_get_bug_view_url_with_fqdn( $p_bug_id, $p_user_id = null ) {
return config_get( 'path' ) . string_get_bug_view_url( $p_bug_id, $p_user_id );
return config_get( 'path' ) . string_get_bug_view_url( $p_bug_id );
}

/**
Expand Down

0 comments on commit cd34053

Please sign in to comment.