[bugzilla-gnome-org-extensions] Fix bug-format_comment.pl
- From: Krzesimir Nowak <krnowak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [bugzilla-gnome-org-extensions] Fix bug-format_comment.pl
- Date: Thu, 20 Nov 2014 22:20:46 +0000 (UTC)
commit 5c156c40fef9663226b93937cf3fbd511e1ced6b
Author: Owen W. Taylor <otaylor fishsoup net>
Date: Mon Sep 28 00:32:24 2009 -0400
Fix bug-format_comment.pl
extension/code/bug-format_comment.pl | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/extension/code/bug-format_comment.pl b/extension/code/bug-format_comment.pl
index f826e33..9dfc50d 100644
--- a/extension/code/bug-format_comment.pl
+++ b/extension/code/bug-format_comment.pl
@@ -33,10 +33,12 @@ my $text = Bugzilla->hook_args->{'text'};
if ($$text =~ $REVIEW_RE) {
my $base = Bugzilla->params->{'splinter_base'};
my $bug_id = $bug->id;
- if ($base =~ /\?/)
- my $review_link = "<a href='$base&bug=$bug_id&attachment=$1'>Review</a>";
- else
- my $review_link = "<a href='$base?bug=$bug_id&attachment=$1'>Review</a>";
+ my $review_link;
+ if ($base =~ /\?/) {
+ $review_link = "<a href='$base&bug=$bug_id&attachment=$1'>Review</a>";
+ } else {
+ $review_link = "<a href='$base?bug=$bug_id&attachment=$1'>Review</a>";
+ }
my $attach_link = Bugzilla::Template::get_attachment_link($1, "attachment $1");
push(@$regexes, { match => $REVIEW_RE,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]