aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Ruppert <idl0r@gentoo.org>2015-07-11 16:08:11 +0200
committerChristian Ruppert <idl0r@gentoo.org>2015-07-11 16:08:11 +0200
commitbf1988c8169ed4c5c50eb8bfda1dd2736d39cb33 (patch)
tree077237f351d9f9bb5616ce7b2edb8187e29715c3 /duplicates.cgi
parentRemove files no longer kept in the upstream repo (diff)
parentVanilla 4.4.9 to 5.0 without history due to massive merge conflicts (diff)
downloadbugzilla-bf1988c8169ed4c5c50eb8bfda1dd2736d39cb33.tar.gz
bugzilla-bf1988c8169ed4c5c50eb8bfda1dd2736d39cb33.tar.bz2
bugzilla-bf1988c8169ed4c5c50eb8bfda1dd2736d39cb33.zip
Merge branch '4.4.9-to-5.0-vanilla-nohist' into 5.0-migration
Move @gentoo.org restriction for new accounts into the Gentoo extentions. Reset some templates to vanilla/default. We'll use custom ones from now on
Diffstat (limited to 'duplicates.cgi')
-rwxr-xr-xduplicates.cgi10
1 files changed, 6 insertions, 4 deletions
diff --git a/duplicates.cgi b/duplicates.cgi
index cfb55b12c..88159539d 100755
--- a/duplicates.cgi
+++ b/duplicates.cgi
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -wT
+#!/usr/bin/perl -T
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -6,7 +6,10 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0.
+use 5.10.1;
use strict;
+use warnings;
+
use lib qw(. lib);
use Bugzilla;
@@ -172,10 +175,9 @@ my %since_dups = @{$dbh->selectcol_arrayref(
$reso_field_id, $changedsince)};
add_indirect_dups(\%since_dups, \%dupe_relation);
-# Enforce the mostfreqthreshold parameter and the "bug_id" cgi param.
-my $mostfreq = Bugzilla->params->{'mostfreqthreshold'};
+# Enforce the MOST_FREQUENT_THRESHOLD constant and the "bug_id" cgi param.
foreach my $id (keys %total_dups) {
- if ($total_dups{$id} < $mostfreq) {
+ if ($total_dups{$id} < MOST_FREQUENT_THRESHOLD) {
delete $total_dups{$id};
next;
}