summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Template.pm
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2009-12-04 15:28:47 +0100
committermkanat%bugzilla.org <>2009-12-04 15:28:47 +0100
commitbc19204d3dffa448b364bfa4b5691a24f39f6765 (patch)
tree1fa13715dc812d8e36240a85374a34b29248973a /Bugzilla/Template.pm
parent9c623cb93101c9bb8bf8c0428ca66dd5f7fdc63d (diff)
downloadbugzilla-bc19204d3dffa448b364bfa4b5691a24f39f6765.tar.gz
bugzilla-bc19204d3dffa448b364bfa4b5691a24f39f6765.tar.xz
Bug 452919: Allow the "created an attachment" message in comments to be localized
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
Diffstat (limited to 'Bugzilla/Template.pm')
-rw-r--r--Bugzilla/Template.pm7
1 files changed, 1 insertions, 6 deletions
diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm
index f714f04d1..028914164 100644
--- a/Bugzilla/Template.pm
+++ b/Bugzilla/Template.pm
@@ -242,12 +242,7 @@ sub quoteUrls {
$text =~ s~\b(mailto:|)?([\w\.\-\+\=]+\@[\w\-]+(?:\.[\w\-]+)+)\b
~<a href=\"mailto:$2\">$1$2</a>~igx;
- # attachment links - handle both cases separately for simplicity
- $text =~ s~((?:^Created\ an\ |\b)attachment\s*\(id=(\d+)\)(\s\[edit\])?)
- ~($things[$count++] = get_attachment_link($2, $1)) &&
- ("\0\0" . ($count-1) . "\0\0")
- ~egmx;
-
+ # attachment links
$text =~ s~\b(attachment$s*\#?$s*(\d+))
~($things[$count++] = get_attachment_link($2, $1)) &&
("\0\0" . ($count-1) . "\0\0")