From 9d96ac724457e849dcc01c9fb1b87128a6b75e05 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Mon, 4 Sep 2006 02:18:53 +0000 Subject: Bug 347096: Create Bugzilla->localconfig and replace most read_localconfig calls with it Patch By Max Kanat-Alexander r=LpSolit, a=myk --- Bugzilla.pm | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Bugzilla.pm') diff --git a/Bugzilla.pm b/Bugzilla.pm index 19c52ee2f..0fb223e9e 100644 --- a/Bugzilla.pm +++ b/Bugzilla.pm @@ -32,6 +32,7 @@ use Bugzilla::Auth; use Bugzilla::Auth::Persist::Cookie; use Bugzilla::CGI; use Bugzilla::DB; +use Bugzilla::Install::Localconfig qw(read_localconfig); use Bugzilla::Template; use Bugzilla::User; use Bugzilla::Error; @@ -147,6 +148,11 @@ sub cgi { return request_cache()->{cgi}; } +sub localconfig { + request_cache()->{localconfig} ||= read_localconfig(); + return request_cache()->{localconfig}; +} + sub params { my $class = shift; request_cache()->{params} ||= Bugzilla::Config::read_param_file(); -- cgit v1.2.3-24-g4f1b