diff options
author | lpsolit%gmail.com <> | 2007-04-19 17:05:20 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2007-04-19 17:05:20 +0200 |
commit | 40e63525a8bda9132a4d2c0d296b2b7e89fe75de (patch) | |
tree | c55b68fd0ed29b7752d0956c7cab85d8004882e6 /Bugzilla | |
parent | 29ab35c232fdff053f78b18598bfbe6a13f29826 (diff) | |
download | bugzilla-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.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 => |