diff --git a/core/print_api.php b/core/print_api.php index 11e2610c16..50f7e642f6 100644 --- a/core/print_api.php +++ b/core/print_api.php @@ -1216,7 +1216,7 @@ function print_plugin_priority_list( $p_priority ) { * @return void */ function print_bug_link( $p_bug_id, $p_detail_info = true ) { - echo string_get_bug_view_link( $p_bug_id, null, $p_detail_info ); + echo string_get_bug_view_link( $p_bug_id, $p_detail_info ); } /** diff --git a/core/string_api.php b/core/string_api.php index 6fc3059e3d..21e334d160 100644 --- a/core/string_api.php +++ b/core/string_api.php @@ -353,7 +353,6 @@ function( $p_array ) use( $p_detail_info, $p_fqdn ) { return $p_array[1] . string_get_bug_view_link( (int)$p_array[2], - null, (boolean)$p_detail_info, (boolean)$p_fqdn ); @@ -609,14 +608,12 @@ function string_get_bug_page( $p_action ) { /** * return an href anchor that links to a bug VIEW page for the given bug - * account for the user preference and site override * @param integer $p_bug_id A bug identifier. - * @param integer $p_user_id A valid user identifier. * @param boolean $p_detail_info Whether to include more detailed information (e.g. title attribute / project) in the returned string. * @param boolean $p_fqdn Whether to return an absolute or relative link. * @return string */ -function string_get_bug_view_link( $p_bug_id, $p_user_id = null, $p_detail_info = true, $p_fqdn = false ) { +function string_get_bug_view_link( $p_bug_id, $p_detail_info = true, $p_fqdn = false ) { if( bug_exists( $p_bug_id ) ) { $t_link = '