summaryrefslogtreecommitdiffstats
path: root/Bugzilla.pm
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2018-03-22 04:35:37 +0100
committerGitHub <noreply@github.com>2018-03-22 04:35:37 +0100
commiteee0904a1b5cf5ae138480f18ecfffd5fd0ca5da (patch)
treeeba33b508914e16210d51e8b86d50c13ce04dd2c /Bugzilla.pm
parent9441c91d97a02034b2f2cfa9b19e3a555dbee317 (diff)
downloadbugzilla-eee0904a1b5cf5ae138480f18ecfffd5fd0ca5da.tar.gz
bugzilla-eee0904a1b5cf5ae138480f18ecfffd5fd0ca5da.tar.xz
Bug 1447669 - follow-up fix - use override shadowsdb value to determine to use it or not
Diffstat (limited to 'Bugzilla.pm')
-rw-r--r--Bugzilla.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla.pm b/Bugzilla.pm
index 510c8dc4e..3e511ccce 100644
--- a/Bugzilla.pm
+++ b/Bugzilla.pm
@@ -631,7 +631,7 @@ sub switch_to_shadow_db {
my $class = shift;
if (!$class->request_cache->{dbh_shadow}) {
- if ($class->params->{'shadowdb'}) {
+ if ($class->get_param_with_override('shadowdb')) {
$class->request_cache->{dbh_shadow} = Bugzilla::DB::connect_shadow();
} else {
$class->request_cache->{dbh_shadow} = $class->dbh_main;