summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2017-12-19 17:25:10 +0100
committerGitHub <noreply@github.com>2017-12-19 17:25:10 +0100
commit66efda5f9cf1502dbdce88321d6bed594656d70c (patch)
tree1a8ab6d283d485af6b2bf832d4614e76e7f81f7a
parentba299d1e1a9d1c180bd7c764bb31f3ed46d704f5 (diff)
downloadbugzilla-66efda5f9cf1502dbdce88321d6bed594656d70c.tar.gz
bugzilla-66efda5f9cf1502dbdce88321d6bed594656d70c.tar.xz
no bug - ensure urlbase is always present in data/params (#304)
-rw-r--r--Bugzilla/Config.pm4
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;