aboutsummaryrefslogtreecommitdiffstats
path: root/Bugzilla/User
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-07-14 11:52:46 -0700
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-07-14 11:52:46 -0700
commit1c2902ecbdaab493cb0a4a2fe3e46a2739c0d0fc (patch)
tree86e2f93ae38723e3eafca40e37b23b8a70af720d /Bugzilla/User
parent32b3964d567599b82019f9563fa732eced860223 (diff)
downloadbugs-1c2902ecbdaab493cb0a4a2fe3e46a2739c0d0fc.tar
bugs-1c2902ecbdaab493cb0a4a2fe3e46a2739c0d0fc.tar.gz
bugs-1c2902ecbdaab493cb0a4a2fe3e46a2739c0d0fc.tar.bz2
bugs-1c2902ecbdaab493cb0a4a2fe3e46a2739c0d0fc.tar.xz
bugs-1c2902ecbdaab493cb0a4a2fe3e46a2739c0d0fc.zip
Bug 578587: Make checksetup be way quieter when creating a new install
r=mkanat, a=mkanat (module owner)
Diffstat (limited to 'Bugzilla/User')
-rw-r--r--Bugzilla/User/Setting.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/Bugzilla/User/Setting.pm b/Bugzilla/User/Setting.pm
index 7a6c72fd3..78e64c96b 100644
--- a/Bugzilla/User/Setting.pm
+++ b/Bugzilla/User/Setting.pm
@@ -125,7 +125,8 @@ sub new {
###############################
sub add_setting {
- my ($name, $values, $default_value, $subclass, $force_check) = @_;
+ my ($name, $values, $default_value, $subclass, $force_check,
+ $silently) = @_;
my $dbh = Bugzilla->dbh;
my $exists = _setting_exists($name);
@@ -146,7 +147,7 @@ sub add_setting {
undef, $name);
}
}
- else {
+ elsif (!$silently) {
print get_text('install_setting_new', { name => $name }) . "\n";
}
$dbh->do(q{INSERT INTO setting (name, default_value, is_enabled, subclass)