summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Template.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla/Template.pm')
-rw-r--r--Bugzilla/Template.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm
index 42e335f95..8a3917c02 100644
--- a/Bugzilla/Template.pm
+++ b/Bugzilla/Template.pm
@@ -804,6 +804,9 @@ sub create {
Bugzilla::BugMail::Send($id, $mailrecipients);
},
+ # Allow templates to access the "corect" URLBase value
+ 'urlbase' => sub { return Bugzilla::Util::correct_urlbase(); },
+
# These don't work as normal constants.
DB_MODULE => \&Bugzilla::Constants::DB_MODULE,
REQUIRED_MODULES =>