mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-28 11:28:38 +00:00
Bug 330485: Attachment links in comments still say "edit" instead of "details" - Patch by victory(_RSZ_) <bmo@rsz.jp> r=LpSolit a=myk
This commit is contained in:
parent
1dfaea282c
commit
7a0587ff85
@ -379,12 +379,12 @@ sub get_attachment_link {
|
||||
# Prevent code injection in the title.
|
||||
$title = value_quote($title);
|
||||
|
||||
$link_text =~ s/ \[edit\]$//;
|
||||
$link_text =~ s/ \[details\]$//;
|
||||
my $linkval = "attachment.cgi?id=$attachid&action=";
|
||||
# Whitespace matters here because these links are in <pre> tags.
|
||||
return qq|<span class="$className">|
|
||||
. qq|<a href="${linkval}view" title="$title">$link_text</a>|
|
||||
. qq| <a href="${linkval}edit" title="$title">[edit]</a>|
|
||||
. qq| <a href="${linkval}edit" title="$title">[details]</a>|
|
||||
. qq|</span>|;
|
||||
}
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user