diff options
author | mkanat%bugzilla.org <> | 2006-09-04 04:18:53 +0200 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2006-09-04 04:18:53 +0200 |
commit | 9d96ac724457e849dcc01c9fb1b87128a6b75e05 (patch) | |
tree | 8f61489bbb03a20d296aed563e2cdaca281d1d5e /Bugzilla/Install/Localconfig.pm | |
parent | 788beb08c05baf7aeb2556fe1355fe15a21e3f8f (diff) | |
download | bugzilla-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/Install/Localconfig.pm')
-rw-r--r-- | Bugzilla/Install/Localconfig.pm | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/Bugzilla/Install/Localconfig.pm b/Bugzilla/Install/Localconfig.pm index ef5605d41..f01be8bf9 100644 --- a/Bugzilla/Install/Localconfig.pm +++ b/Bugzilla/Install/Localconfig.pm @@ -33,11 +33,9 @@ use IO::File; use Safe; use base qw(Exporter); -our @EXPORT = qw( - read_localconfig -); our @EXPORT_OK = qw( + read_localconfig update_localconfig ); @@ -344,6 +342,9 @@ EOT # Now we do some checks on localconfig values. _check_web_server_group($localconfig->{'webservergroup'}) if $output; + # Reset the cache for Bugzilla->localconfig so that it will be re-read + delete Bugzilla->request_cache->{localconfig}; + return { old_vars => \@old_vars, new_vars => \@new_vars }; } @@ -460,14 +461,14 @@ Bugzilla::Install::Localconfig - Functions and variables dealing =head1 SYNOPSIS - use Bugzilla::Install::Requirements qw(read_localconfig update_localconfig) - my $localconfig = read_localconfig(); + use Bugzilla::Install::Requirements qw(update_localconfig); update_localconfig({ output => 1, answer => \%answer }); =head1 DESCRIPTION This module is used primarily by L<checksetup.pl> to create and -modify the localconfig file. +modify the localconfig file. Most scripts should use L<Bugzilla/localconfig> +to access localconfig variables. =head1 CONSTANTS |