summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Config/Admin.pm
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2017-08-04 19:09:47 +0200
committerGitHub <noreply@github.com>2017-08-04 19:09:47 +0200
commit28a1de6319da8b481b9b5ec08f070bce65e17bb3 (patch)
treeeb847858414dd851ee18a1f6c43ed22b2d265829 /Bugzilla/Config/Admin.pm
parente0dc311bfb82168bce140113198697958ad386b8 (diff)
downloadbugzilla-28a1de6319da8b481b9b5ec08f070bce65e17bb3.tar.gz
bugzilla-28a1de6319da8b481b9b5ec08f070bce65e17bb3.tar.xz
Bug 1387459 - Tidy the Bugzilla/Config/*.pm modules
Diffstat (limited to 'Bugzilla/Config/Admin.pm')
-rw-r--r--Bugzilla/Config/Admin.pm93
1 files changed, 47 insertions, 46 deletions
diff --git a/Bugzilla/Config/Admin.pm b/Bugzilla/Config/Admin.pm
index 5f10bfef3..ad24f7112 100644
--- a/Bugzilla/Config/Admin.pm
+++ b/Bugzilla/Config/Admin.pm
@@ -19,52 +19,53 @@ use Scalar::Util qw(looks_like_number);
our $sortkey = 200;
sub get_param_list {
- my $class = shift;
- my @param_list = (
- {
- name => 'allowbugdeletion',
- type => 'b',
- default => 0
- },
-
- {
- name => 'allowemailchange',
- type => 'b',
- default => 1
- },
-
- {
- name => 'allowuserdeletion',
- type => 'b',
- default => 0
- },
-
- {
- name => 'last_visit_keep_days',
- type => 't',
- default => 10,
- checker => \&check_numeric
- },
-
- {
- name => 'rate_limit_active',
- type => 'b',
- default => 1,
- },
-
- {
- name => 'rate_limit_rules',
- type => 'l',
- default => '{"get_bug": [75, 60], "show_bug": [75, 60]}',
- checker => \&check_rate_limit_rules,
- },
-
- {
- name => 'log_user_requests',
- type => 'b',
- default => 0,
- });
- return @param_list;
+ my $class = shift;
+ my @param_list = (
+ {
+ name => 'allowbugdeletion',
+ type => 'b',
+ default => 0
+ },
+
+ {
+ name => 'allowemailchange',
+ type => 'b',
+ default => 1
+ },
+
+ {
+ name => 'allowuserdeletion',
+ type => 'b',
+ default => 0
+ },
+
+ {
+ name => 'last_visit_keep_days',
+ type => 't',
+ default => 10,
+ checker => \&check_numeric
+ },
+
+ {
+ name => 'rate_limit_active',
+ type => 'b',
+ default => 1,
+ },
+
+ {
+ name => 'rate_limit_rules',
+ type => 'l',
+ default => '{"get_bug": [75, 60], "show_bug": [75, 60]}',
+ checker => \&check_rate_limit_rules,
+ },
+
+ {
+ name => 'log_user_requests',
+ type => 'b',
+ default => 0,
+ }
+ );
+ return @param_list;
}
sub check_rate_limit_rules {