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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user