Skip to content

Commit

Permalink
* string_api.php
Browse files Browse the repository at this point in the history
  (string_process_bug_link): include the title attribute with the bug's description


git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@1632 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
Julian Fitzell committed Nov 30, 2002
1 parent ca6851f commit 88196b3
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions core/string_api.php
Expand Up @@ -6,7 +6,7 @@
# See the files README and LICENSE for details

# --------------------------------------------------------
# $Id: string_api.php,v 1.13 2002-11-10 23:29:02 jfitzell Exp $
# $Id: string_api.php,v 1.14 2002-11-30 21:11:04 jfitzell Exp $
# --------------------------------------------------------

###########################################################################
Expand Down Expand Up @@ -145,12 +145,16 @@ function string_process_bug_link( $p_string, $p_include_anchor=true ) {
}

if ( $p_include_anchor ) {
$t_replace_with = ' <a href="'.$t_page_name.'?f_bug_id=\\2">#\\2</a>';
$t_replace_with = <<< EOT
' <a href="$t_page_name?f_bug_id=\\2" title="' .
bug_get_field( \\2, 'summary' ) .
'">#\\2</a>'
EOT;
} else {
$t_replace_with = $t_path.$t_page_name.'?f_bug_id=\\2';
}

return preg_replace('/(\W|^)' . $t_tag . '([0-9]+)/',
return preg_replace('/(\W|^)' . $t_tag . '([0-9]+)/e',
$t_replace_with,
$p_string);
}
Expand Down

0 comments on commit 88196b3

Please sign in to comment.