diff options
-rw-r--r-- | globals.pl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/globals.pl b/globals.pl index 6632833ab..e31c8e717 100644 --- a/globals.pl +++ b/globals.pl @@ -968,10 +968,10 @@ sub GetAttachmentLink { # Now that we know we've got all the information we're gonna get, let's # return the link (which is the whole reason we were called :) my ($title, $className) = @{$::attachlink{$attachid}}; - # $title will be undefined if the bug didn't exist in the database. + # $title will be undefined if the attachment didn't exist in the database. if (defined $title) { - my $linkval = "attachment.cgi?id=$attachid&action=view"; - return qq{<a href="$linkval" class="$className" title="$title">$link_text</a>}; + my $linkval = "attachment.cgi?id=$attachid"; + return qq{<a href="$linkval" class="$className" title="$title">$link_text</a> [<a href="$linkval&action=edit">edit</a>]}; } else { return qq{$link_text}; |