Skip to content

Commit

Permalink
Remove unused parameter $p_user_id from function string_get_bug_view_…
Browse files Browse the repository at this point in the history
…link
  • Loading branch information
atrol committed Nov 10, 2015
1 parent c4724f6 commit a0c0645
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion core/print_api.php
Expand Up @@ -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 );
}

/**
Expand Down
5 changes: 1 addition & 4 deletions core/string_api.php
Expand Up @@ -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
);
Expand Down Expand Up @@ -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 = '<a href="';
if( $p_fqdn ) {
Expand Down

0 comments on commit a0c0645

Please sign in to comment.