summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Template.pm
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2018-06-20 03:28:50 +0200
committerDylan William Hardison <dylan@hardison.net>2018-06-28 22:41:58 +0200
commite1b48df3b5cdd81920782a8585864af3b294e919 (patch)
tree13bb7c184950b6f1d911e387bbff817e42d1ee2d /Bugzilla/Template.pm
parent561a205df8fdb1950df167c6915d52601630c08a (diff)
downloadbugzilla-e1b48df3b5cdd81920782a8585864af3b294e919.tar.gz
bugzilla-e1b48df3b5cdd81920782a8585864af3b294e919.tar.xz
lots of hacking
Diffstat (limited to 'Bugzilla/Template.pm')
-rw-r--r--Bugzilla/Template.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm
index 9eea0d3dd..db2499ec5 100644
--- a/Bugzilla/Template.pm
+++ b/Bugzilla/Template.pm
@@ -571,7 +571,7 @@ sub create {
# if a packager has modified bz_locations() to contain absolute
# paths.
ABSOLUTE => 1,
- RELATIVE => $ENV{MOD_PERL} ? 0 : 1,
+ RELATIVE => $ENV{SERVER_SOFTWARE} ? 0 : 1,
# Only use an on-disk template cache if we're running as the web
# server. This ensures the permissions of the cache remain correct.
@@ -1040,7 +1040,7 @@ sub create {
# under mod_perl, use a provider (template loader) that preloads all templates into memory
my $provider_class
- = $ENV{MOD_PERL}
+ = $opts{preload}
? 'Bugzilla::Template::PreloadProvider'
: 'Template::Provider';