diff options
author | Dylan William Hardison <dylan@hardison.net> | 2018-06-20 03:28:50 +0200 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2018-06-28 22:41:58 +0200 |
commit | e1b48df3b5cdd81920782a8585864af3b294e919 (patch) | |
tree | 13bb7c184950b6f1d911e387bbff817e42d1ee2d /Bugzilla/Template.pm | |
parent | 561a205df8fdb1950df167c6915d52601630c08a (diff) | |
download | bugzilla-e1b48df3b5cdd81920782a8585864af3b294e919.tar.gz bugzilla-e1b48df3b5cdd81920782a8585864af3b294e919.tar.xz |
lots of hacking
Diffstat (limited to 'Bugzilla/Template.pm')
-rw-r--r-- | Bugzilla/Template.pm | 4 |
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'; |