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/SiteMapIndex/lib/Util.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'extensions/SiteMapIndex/lib') diff --git a/extensions/SiteMapIndex/lib/Util.pm b/extensions/SiteMapIndex/lib/Util.pm index 3548e5af5..4519461b4 100644 --- a/extensions/SiteMapIndex/lib/Util.pm +++ b/extensions/SiteMapIndex/lib/Util.pm @@ -34,7 +34,7 @@ our @EXPORT = qw( use Bugzilla::Extension::SiteMapIndex::Constants; -use Bugzilla::Util qw(correct_urlbase datetime_from url_quote); +use Bugzilla::Util qw(datetime_from url_quote); use Bugzilla::Constants qw(bz_locations); use Scalar::Util qw(blessed); @@ -144,7 +144,7 @@ END foreach my $filename (@$filelist) { $index_xml .= " - " . correct_urlbase() . "data/$extension_name/$filename + " . Bugzilla->localconfig->{urlbase} . "data/$extension_name/$filename $timestamp "; @@ -166,8 +166,8 @@ END sub _generate_sitemap_file { my ($extension_name, $filecount, $products, $bugs) = @_; - my $bug_url = correct_urlbase() . 'show_bug.cgi?id='; - my $product_url = correct_urlbase() . 'describecomponents.cgi?product='; + my $bug_url = Bugzilla->localconfig->{urlbase} . 'show_bug.cgi?id='; + my $product_url = Bugzilla->localconfig->{urlbase} . 'describecomponents.cgi?product='; my $sitemap_xml = < -- cgit v1.2.3-24-g4f1b