]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1447669 - follow-up fix - use override shadowsdb value to determine to use it...
authorDylan William Hardison <dylan@hardison.net>
Thu, 22 Mar 2018 03:35:37 +0000 (23:35 -0400)
committerGitHub <noreply@github.com>
Thu, 22 Mar 2018 03:35:37 +0000 (23:35 -0400)
Bugzilla.pm

index 510c8dc4e3ba1c966fa36949432aad013693d027..3e511ccce3eff763c0f7d910d1f56242354438ec 100644 (file)
@@ -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;