diff options
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/Template.pm | 3 |
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 => |