aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2011-02-22 02:16:17 +0000
committerMichael Scherer <misc@mageia.org>2011-02-22 02:16:17 +0000
commit446fbb40c72272791b6275cdb6cb757edc9e9141 (patch)
treed79c6a4a33cf68f783226966bfac8838190163ee /modules
parentceffff1bc694d37a7b9d0b139561ad7321df524c (diff)
downloadpuppet-446fbb40c72272791b6275cdb6cb757edc9e9141.tar
puppet-446fbb40c72272791b6275cdb6cb757edc9e9141.tar.gz
puppet-446fbb40c72272791b6275cdb6cb757edc9e9141.tar.bz2
puppet-446fbb40c72272791b6275cdb6cb757edc9e9141.tar.xz
puppet-446fbb40c72272791b6275cdb6cb757edc9e9141.zip
- force is_dynamic parameter ( or it is almost never taken in account )
Diffstat (limited to 'modules')
-rw-r--r--modules/phpbb/files/phpbb_apply_config.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/phpbb/files/phpbb_apply_config.pl b/modules/phpbb/files/phpbb_apply_config.pl
index f790cf30..09e9812a 100644
--- a/modules/phpbb/files/phpbb_apply_config.pl
+++ b/modules/phpbb/files/phpbb_apply_config.pl
@@ -12,10 +12,10 @@ my $dbh = DBI->connect("dbi:Pg:","","");
my $table = "phpbb_config";
-my $update = $dbh->prepare("UPDATE $table SET config_value = ? WHERE config_name = ?");
+my $update = $dbh->prepare("UPDATE $table SET config_value = ?, is_dynamic = ? WHERE config_name = ?");
my $insert = $dbh->prepare("INSERT INTO $table ( config_value, config_name, is_dynamic ) VALUES ( ? , ? , ? )");
-my $res = $update->execute($VALUE ,$key) or die "cannot do update $?";
+my $res = $update->execute($VALUE ,1, $key) or die "cannot do update $?";
if ($res == 0 ) {
$insert->execute($VALUE ,$key, 1) or die "cannot do insert $?";
}