summaryrefslogtreecommitdiffstats
path: root/globals.pl
diff options
context:
space:
mode:
authorjake%acutex.net <>2001-10-20 21:59:57 +0200
committerjake%acutex.net <>2001-10-20 21:59:57 +0200
commit16c15e5201a38a2dda0cf5daf654dae39b043cc2 (patch)
tree4540291e6a7c8851effb17c7dee312f5cb57dfc0 /globals.pl
parent0a39f7d18a967e33f56bf084138b9ad12fdaf79f (diff)
downloadbugzilla-16c15e5201a38a2dda0cf5daf654dae39b043cc2.tar.gz
bugzilla-16c15e5201a38a2dda0cf5daf654dae39b043cc2.tar.xz
Backing out previous change, the wrong patch got checked in.
Diffstat (limited to 'globals.pl')
-rw-r--r--globals.pl36
1 files changed, 10 insertions, 26 deletions
diff --git a/globals.pl b/globals.pl
index 4b9c7c9e7..834c08d1c 100644
--- a/globals.pl
+++ b/globals.pl
@@ -891,22 +891,6 @@ sub quoteUrls {
$things[$count++] = $item;
}
- # Either a comment string or no comma and a compulsory #.
- while ($text =~ s/\bbug(\s|%\#)*(\d+),?\s*comment\s*(\s|%\#)(\d+)/"##$count##"/ei) {
- my $item = $&;
- my $bugnum = $2;
- my $comnum = $4;
- $item = GetBugLink($bugnum, $item);
- $item =~ s/(id=\d+)/$1#c$comnum/;
- $things[$count++] = $item;
- }
- while ($text =~ s/\bcomment(\s|%\#)*(\d+)/"##$count##"/ei) {
- my $item = $&;
- my $num = $2;
- $item = value_quote($item);
- $item = qq{<A HREF="#c$num">$item</A>};
- $things[$count++] = $item;
- }
while ($text =~ s/\bbug(\s|%\#)*(\d+)/"##$count##"/ei) {
my $item = $&;
my $num = $2;
@@ -1063,16 +1047,16 @@ sub GetLongDescriptionAsHTML {
my ($who, $email, $when, $text) = (FetchSQLData());
$email .= Param('emailsuffix');
if ($count) {
- $result .= "<BR><BR><I>------- Additional Comment <a name='c$count' href='#c$count'>#$count</a> From ";
- if ($who) {
- $result .= qq{<A HREF="mailto:$email">$who</A> } .
- time2str("%Y-%m-%d %H:%M", str2time($when));
- } else {
- $result .= qq{<A HREF="mailto:$email">$email</A> } .
- time2str("%Y-%m-%d %H:%M", str2time($when));
- }
-
- $result .= " -------</I><BR>\n";
+ $result .= "<BR><BR><I>------- Additional Comments From ";
+ if ($who) {
+ $result .= qq{<A HREF="mailto:$email">$who</A> } .
+ time2str("%Y-%m-%d %H:%M", str2time($when)) .
+ " -------</I><BR>\n";
+ } else {
+ $result .= qq{<A HREF="mailto:$email">$email</A> } .
+ time2str("%Y-%m-%d %H:%M", str2time($when)) .
+ " -------</I><BR>\n";
+ }
}
$result .= "<PRE>" . quoteUrls(\%knownattachments, $text) . "</PRE>\n";
$count++;