summaryrefslogtreecommitdiffstats
path: root/Bugzilla.pm
diff options
context:
space:
mode:
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();