summaryrefslogtreecommitdiffstats
path: root/Bugzilla.pm
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2006-09-04 04:18:53 +0200
committermkanat%bugzilla.org <>2006-09-04 04:18:53 +0200
commit9d96ac724457e849dcc01c9fb1b87128a6b75e05 (patch)
tree8f61489bbb03a20d296aed563e2cdaca281d1d5e /Bugzilla.pm
parent788beb08c05baf7aeb2556fe1355fe15a21e3f8f (diff)
downloadbugzilla-9d96ac724457e849dcc01c9fb1b87128a6b75e05.tar.gz
bugzilla-9d96ac724457e849dcc01c9fb1b87128a6b75e05.tar.xz
Bug 347096: Create Bugzilla->localconfig and replace most read_localconfig calls with it
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=myk
Diffstat (limited to 'Bugzilla.pm')
-rw-r--r--Bugzilla.pm6
1 files changed, 6 insertions, 0 deletions
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();