diff options
author | Dylan William Hardison <dylan@hardison.net> | 2017-12-19 17:25:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-19 17:25:10 +0100 |
commit | 66efda5f9cf1502dbdce88321d6bed594656d70c (patch) | |
tree | 1a8ab6d283d485af6b2bf832d4614e76e7f81f7a /Bugzilla | |
parent | ba299d1e1a9d1c180bd7c764bb31f3ed46d704f5 (diff) | |
download | bugzilla-66efda5f9cf1502dbdce88321d6bed594656d70c.tar.gz bugzilla-66efda5f9cf1502dbdce88321d6bed594656d70c.tar.xz |
no bug - ensure urlbase is always present in data/params (#304)
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/Config.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Bugzilla/Config.pm b/Bugzilla/Config.pm index 76f32d59c..629afb6d0 100644 --- a/Bugzilla/Config.pm +++ b/Bugzilla/Config.pm @@ -277,7 +277,9 @@ sub write_params { my ($fh, $tmpname) = File::Temp::tempfile('params.XXXXX', DIR => $datadir ); - print $fh (Data::Dumper->Dump([$param_data], ['*param'])) + my %params = %$param_data; + $params{urlbase} = Bugzilla->localconfig->{urlbase}; + print $fh (Data::Dumper->Dump([\%params], ['*param'])) || die "Can't write param file: $!"; close $fh; |