diff options
-rw-r--r-- | globals.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/globals.pl b/globals.pl index d33319e98..273f677d4 100644 --- a/globals.pl +++ b/globals.pl @@ -832,8 +832,8 @@ sub GetAttachmentLink { my ($title, $className) = @{$::attachlink{$attachid}}; # $title will be undefined if the attachment didn't exist in the database. if (defined $title) { - 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>]}; + my $linkval = "attachment.cgi?id=$attachid&action=edit"; + return qq{<a href="$linkval" class="$className" title="$title">$link_text</a>}; } else { return qq{$link_text}; |