From 46427b4f97c41cab36de1ddffad63ba1e5cb0fd8 Mon Sep 17 00:00:00 2001 From: Doug Bell Date: Tue, 9 Jan 2007 16:40:16 +0000 Subject: [PATCH] fix: DB slaves were not being instanciated correctly. --- docs/changelog/7.x.x.txt | 1 + lib/WebGUI/Session.pm | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 8a14ac294..09e628581 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -18,6 +18,7 @@ appropriately. This fixes the problem with CS posts sent via e-mail showing two versions of the same post. - fix: Styles were printing double head block headers. + - fix: DB slaves were not being instanciated correctly. 7.3.3 - fix: Wiki Purge throws fatal diff --git a/lib/WebGUI/Session.pm b/lib/WebGUI/Session.pm index 3a55ea469..bd5c8418a 100644 --- a/lib/WebGUI/Session.pm +++ b/lib/WebGUI/Session.pm @@ -186,7 +186,7 @@ sub dbSlave { foreach (1..3) { my $slave = $self->config->get("dbslave".$_); if (exists $slave->{dsn}) { - push(@{$self->{_slave}},$self->db->connect($self, $slave->{dsn},$slave->{user},$slave->{pass})); + push(@{$self->{_slave}},WebGUI::SQL->connect($self, $slave->{dsn},$slave->{user},$slave->{pass})); } } }