Skip to content

Commit

Permalink
* core/string_api.php
Browse files Browse the repository at this point in the history
  (string_process_bug_link): use string_get_bug_view_link() to remove redunancy


git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@1840 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
Julian Fitzell committed Feb 15, 2003
1 parent 33c5c68 commit b9f85e5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions core/string_api.php
Expand Up @@ -6,7 +6,7 @@
# See the README and LICENSE files for details

# --------------------------------------------------------
# $Id: string_api.php,v 1.25 2003-02-10 21:59:44 jfitzell Exp $
# $Id: string_api.php,v 1.26 2003-02-15 01:52:00 jfitzell Exp $
# --------------------------------------------------------

$t_core_dir = dirname( __FILE__ ).DIRECTORY_SEPARATOR;
Expand Down Expand Up @@ -125,9 +125,7 @@ function string_process_bug_link( $p_string, $p_include_anchor=true ) {
if ( isset( $t_match[2] ) ) {
$t_bug_id = $t_match[2];
if ( bug_exists( $t_bug_id ) ) {
$t_result .= '<a href="' . $t_page_name . '?bug_id=' . $t_bug_id .
'" title="' . bug_get_field( $t_bug_id, 'summary' ) .
'">#' . $t_bug_id . '</a>';
$t_result .= string_get_bug_view_link( $t_bug_id );
} else {
$t_result .= $t_tag . $t_bug_id;
}
Expand Down

0 comments on commit b9f85e5

Please sign in to comment.