From 40e63525a8bda9132a4d2c0d296b2b7e89fe75de Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Thu, 19 Apr 2007 15:05:20 +0000 Subject: Bug 369933: Use Bugzilla::Util::correct_urlbase() everywhere in templates to get the correct URL to the Bugzilla installation - Patch by Alex Eiser r/a=LpSolit --- Bugzilla/Template.pm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Bugzilla') 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 => -- cgit v1.2.3-24-g4f1b