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
abeb2964
Commit
abeb2964
authored
Feb 20, 2010
by
Max Kanat-Alexander
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 499151: Only call format_comment when it's actually needed, as a slight
performance improvement. r=glob, a=LpSolit
parent
09df4b6f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
+10
-7
Comment.pm
Bugzilla/Comment.pm
+9
-4
format_comment.txt.tmpl
template/en/default/bug/format_comment.txt.tmpl
+1
-3
No files found.
Bugzilla/Comment.pm
View file @
abeb2964
...
...
@@ -119,10 +119,15 @@ sub body_full {
$params
||=
{};
my
$template
=
Bugzilla
->
template_inner
;
my
$body
;
$template
->
process
(
"bug/format_comment.txt.tmpl"
,
{
comment
=>
$self
,
%
$params
},
\
$body
)
||
ThrowTemplateError
(
$template
->
error
());
$body
=~
s/^X//
;
if
(
$self
->
type
)
{
$template
->
process
(
"bug/format_comment.txt.tmpl"
,
{
comment
=>
$self
,
%
$params
},
\
$body
)
||
ThrowTemplateError
(
$template
->
error
());
$body
=~
s/^X//
;
}
else
{
$body
=
$self
->
body
;
}
if
(
$params
->
{
wrap
}
and
!
$self
->
already_wrapped
)
{
$body
=
wrap_comment
(
$body
);
}
...
...
template/en/default/bug/format_comment.txt.tmpl
View file @
abeb2964
...
...
@@ -63,8 +63,6 @@ Comment on attachment [% comment.extra_data %]
[%+ comment.attachment.description %]
[%+ comment.body %]
[% ELSIF comment.type %]
[% Hook.process('type') %]
[% ELSE %]
X[%
comment_body
%]
X[%
Hook.process('type')
%]
[% END %]
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