summaryrefslogtreecommitdiffstats
path: root/Bugzilla/User/Setting.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla/User/Setting.pm')
-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)