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


git-svn-id: svn://10.0.0.236/trunk@209109 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mkanat%bugzilla.org
2006-09-03 19:18:53 +00:00
parent 03df287765
commit 81a22ce844
4 changed files with 17 additions and 14 deletions

View File

@@ -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();