From 334bead74bc9c5e819f14946726eaad40986d636 Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Sat, 16 Dec 2017 13:17:05 -0600 Subject: Bug 1403777 - Migrate urlbase from params to localconfig --- extensions/Push/lib/Connector.disabled/AMQP.pm | 2 +- extensions/Push/lib/Connector.disabled/ServiceNow.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'extensions/Push/lib/Connector.disabled') diff --git a/extensions/Push/lib/Connector.disabled/AMQP.pm b/extensions/Push/lib/Connector.disabled/AMQP.pm index f712ee890..1ba365e21 100644 --- a/extensions/Push/lib/Connector.disabled/AMQP.pm +++ b/extensions/Push/lib/Connector.disabled/AMQP.pm @@ -27,7 +27,7 @@ sub init { if ($self->config->{queue}) { $self->{queue_name} = $self->config->{queue}; } else { - my $queue_name = Bugzilla->params->{'urlbase'}; + my $queue_name = Bugzilla->localconfig->{'urlbase'}; $queue_name =~ s#^https?://##; $queue_name =~ s#/$#|#; $queue_name .= generate_random_password(16); diff --git a/extensions/Push/lib/Connector.disabled/ServiceNow.pm b/extensions/Push/lib/Connector.disabled/ServiceNow.pm index a6d84cbe0..d0ebdcf10 100644 --- a/extensions/Push/lib/Connector.disabled/ServiceNow.pm +++ b/extensions/Push/lib/Connector.disabled/ServiceNow.pm @@ -241,7 +241,7 @@ sub send { $request->content(to_json($data)); $request->authorization_basic($self->config->{service_now_user}, $self->config->{service_now_pass}); - $self->{lwp} ||= LWP::UserAgent->new(agent => Bugzilla->params->{urlbase}); + $self->{lwp} ||= LWP::UserAgent->new(agent => Bugzilla->localconfig->{urlbase}); my $result = $self->{lwp}->request($request); # http level errors -- cgit v1.2.3-24-g4f1b