diff options
author | gerv%gerv.net <> | 2002-04-26 04:16:03 +0000 |
---|---|---|
committer | gerv%gerv.net <> | 2002-04-26 04:16:03 +0000 |
commit | 0645b0f60bf45d0bb04a924d69d7057b09646bff (patch) | |
tree | 896453c0e395a298fdf93b830c9250ed3be00815 /globals.pl | |
parent | Bug 140121 - make sure we keep calling SyncAnyPendingShadowChanges from the f... (diff) | |
download | bugzilla-0645b0f60bf45d0bb04a924d69d7057b09646bff.tar.gz bugzilla-0645b0f60bf45d0bb04a924d69d7057b09646bff.tar.bz2 bugzilla-0645b0f60bf45d0bb04a924d69d7057b09646bff.zip |
Bug 140145 - GetLongDescriptionAsHTML must die. Patch by gerv, 2xr=bbaetz.
Diffstat (limited to 'globals.pl')
-rw-r--r-- | globals.pl | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/globals.pl b/globals.pl index 671f1901f..951c4d6a5 100644 --- a/globals.pl +++ b/globals.pl @@ -1162,51 +1162,6 @@ sub GetLongDescriptionAsText { return $result; } - -sub GetLongDescriptionAsHTML { - my ($id, $start, $end) = (@_); - my $result = ""; - my $count = 0; - - my ($query) = ("SELECT profiles.realname, profiles.login_name, longdescs.bug_when, " . - " longdescs.thetext " . - "FROM longdescs, profiles " . - "WHERE profiles.userid = longdescs.who " . - " AND longdescs.bug_id = $id "); - - if ($start && $start =~ /[1-9]/) { - # If the start is all zeros, then don't do this (because we want to - # not emit a leading "Additional Comments" line in that case.) - $query .= "AND longdescs.bug_when > '$start'"; - $count = 1; - } - if ($end) { - $query .= "AND longdescs.bug_when <= '$end'"; - } - - $query .= "ORDER BY longdescs.bug_when"; - SendSQL($query); - while (MoreSQLData()) { - my ($who, $email, $when, $text) = (FetchSQLData()); - $email .= Param('emailsuffix'); - if ($count) { - $result .= qq|<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> }; - } else { - $result .= qq{<A HREF="mailto:$email">$email</A> }; - } - - $result .= time2str("%Y-%m-%d %H:%M", str2time($when)) . " -------</I><BR>\n"; - } - $result .= "<PRE>" . quoteUrls($text) . "</PRE>\n"; - $count++; - } - - return $result; -} - - sub GetComments { my ($id) = (@_); my @comments; |