diff options
author | Struan Donald <struan@exo.org.uk> | 2011-12-08 17:54:49 +0000 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2011-12-08 17:54:49 +0000 |
commit | 1d2ead707ff2f97a2df3e90901b1bbfc0aade62c (patch) | |
tree | 997da4f0a782b1a322b72c6d8ca9d1d0ceae7fb4 /perllib | |
parent | c65d61a7718bbd2ba70557d68575b9e31f6f99e6 (diff) |
BCI -> FMS in config values
Diffstat (limited to 'perllib')
-rw-r--r-- | perllib/FixMyStreet.pm | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/perllib/FixMyStreet.pm b/perllib/FixMyStreet.pm index d63f708d2..2d8f462d5 100644 --- a/perllib/FixMyStreet.pm +++ b/perllib/FixMyStreet.pm @@ -107,15 +107,15 @@ sub dbic_connect_info { my $class = shift; my $config = $class->config; - my $dsn = "dbi:Pg:dbname=" . $config->{BCI_DB_NAME}; - $dsn .= ";host=$config->{BCI_DB_HOST}" - if $config->{BCI_DB_HOST}; - $dsn .= ";port=$config->{BCI_DB_PORT}" - if $config->{BCI_DB_PORT}; + my $dsn = "dbi:Pg:dbname=" . $config->{FMS_DB_NAME}; + $dsn .= ";host=$config->{FMS_DB_HOST}" + if $config->{FMS_DB_HOST}; + $dsn .= ";port=$config->{FMS_DB_PORT}" + if $config->{FMS_DB_PORT}; $dsn .= ";sslmode=allow"; - my $user = $config->{BCI_DB_USER} || undef; - my $password = $config->{BCI_DB_PASS} || undef; + my $user = $config->{FMS_DB_USER} || undef; + my $password = $config->{FMS_DB_PASS} || undef; my $dbi_args = { AutoCommit => 1, @@ -146,11 +146,11 @@ sub configure_mysociety_dbhandle { my $config = $class->config; mySociety::DBHandle::configure( - Name => $config->{BCI_DB_NAME}, - User => $config->{BCI_DB_USER}, - Password => $config->{BCI_DB_PASS}, - Host => $config->{BCI_DB_HOST} || undef, - Port => $config->{BCI_DB_PORT} || undef, + Name => $config->{FMS_DB_NAME}, + User => $config->{FMS_DB_USER}, + Password => $config->{FMS_DB_PASS}, + Host => $config->{FMS_DB_HOST} || undef, + Port => $config->{FMS_DB_PORT} || undef, ); } |