Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
0645b0f6
Commit
0645b0f6
authored
Apr 26, 2002
by
gerv%gerv.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 140145 - GetLongDescriptionAsHTML must die. Patch by gerv, 2xr=bbaetz.
parent
75b87982
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
45 deletions
+0
-45
globals.pl
globals.pl
+0
-45
No files found.
globals.pl
View file @
0645b0f6
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment