summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Template.pm
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2018-03-16 03:30:48 +0100
committerGitHub <noreply@github.com>2018-03-16 03:30:48 +0100
commitb18915bb95c8b1fd9cf8ecef73f45cd47f71fc09 (patch)
tree45b99b30a6b86c51c1caf9e51cb9de563f42b287 /Bugzilla/Template.pm
parent8a04bdd6bc2b5944a2d0bc5680f70829aa8115ce (diff)
downloadbugzilla-b18915bb95c8b1fd9cf8ecef73f45cd47f71fc09.tar.gz
bugzilla-b18915bb95c8b1fd9cf8ecef73f45cd47f71fc09.tar.xz
add Bugzilla->urlbase method that returns a URI object
Diffstat (limited to 'Bugzilla/Template.pm')
-rw-r--r--Bugzilla/Template.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm
index 0d2a4cd86..31c68bbed 100644
--- a/Bugzilla/Template.pm
+++ b/Bugzilla/Template.pm
@@ -925,7 +925,7 @@ sub create {
'sudoer' => sub { return Bugzilla->sudoer; },
# Allow templates to access the "corect" URLBase value
- 'urlbase' => sub { return Bugzilla->localconfig->{urlbase}; },
+ 'urlbase' => sub { Bugzilla->urlbase },
# Allow templates to access docs url with users' preferred language
'docs_urlbase' => sub {