summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2009-01-25 12:42:51 +0000
committerlpsolit%gmail.com <>2009-01-25 12:42:51 +0000
commitb2b03103bba9927d5f1b123e0ad7ae1e04149dc8 (patch)
treee4845cde1af1ada8ca0d43e8c42be6d589e9a936 /config.cgi
parentBug 471613: Replace Bugzilla::Util::is_tainted() by Scalar::Util::tainted() -... (diff)
downloadbugzilla-b2b03103bba9927d5f1b123e0ad7ae1e04149dc8.tar.gz
bugzilla-b2b03103bba9927d5f1b123e0ad7ae1e04149dc8.tar.bz2
bugzilla-b2b03103bba9927d5f1b123e0ad7ae1e04149dc8.zip
Bug 471880: More scripts should use the shadow DB instead of the master DB - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=LpSolit
Diffstat (limited to 'config.cgi')
-rwxr-xr-xconfig.cgi3
1 files changed, 3 insertions, 0 deletions
diff --git a/config.cgi b/config.cgi
index c229dacd6..282b95957 100755
--- a/config.cgi
+++ b/config.cgi
@@ -46,6 +46,9 @@ if (Bugzilla->params->{'requirelogin'} && !$user->id) {
display_data();
}
+# Get data from the shadow DB as they don't change very often.
+Bugzilla->switch_to_shadow_db;
+
# Pass a bunch of Bugzilla configuration to the templates.
my $vars = {};
$vars->{'priority'} = get_legal_field_values('priority');