summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2007-04-19 17:05:20 +0200
committerlpsolit%gmail.com <>2007-04-19 17:05:20 +0200
commit40e63525a8bda9132a4d2c0d296b2b7e89fe75de (patch)
treec55b68fd0ed29b7752d0956c7cab85d8004882e6 /Bugzilla
parent29ab35c232fdff053f78b18598bfbe6a13f29826 (diff)
downloadbugzilla-40e63525a8bda9132a4d2c0d296b2b7e89fe75de.tar.gz
bugzilla-40e63525a8bda9132a4d2c0d296b2b7e89fe75de.tar.xz
Bug 369933: Use Bugzilla::Util::correct_urlbase() everywhere in templates to get the correct URL to the Bugzilla installation - Patch by Alex Eiser <aeiser@arc.nasa.gov> r/a=LpSolit
Diffstat (limited to 'Bugzilla')
-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 =>