summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2016-10-13 16:28:08 +0200
committerDylan William Hardison <dylan@hardison.net>2016-10-18 18:46:04 +0200
commit14ee84314a54c530f7a71420334c978c43cebeb3 (patch)
treefd868eeb54c03b77f38b720776fce625f2c3418c /Bugzilla
parent7d445a428fc4731006b3743be922a17d84e5155d (diff)
downloadbugzilla-14ee84314a54c530f7a71420334c978c43cebeb3.tar.gz
bugzilla-14ee84314a54c530f7a71420334c978c43cebeb3.tar.xz
Bug 1309884 - constants.CONCATENATE_ASSETS gets constant folded when true
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Template.pm12
1 files changed, 7 insertions, 5 deletions
diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm
index ce0276751..10f8b4eed 100644
--- a/Bugzilla/Template.pm
+++ b/Bugzilla/Template.pm
@@ -450,10 +450,12 @@ sub css_files {
}
}
- # build unified
- $by_type{unified_standard_skin} = _concatenate_css($by_type{standard},
- $by_type{skin});
- $by_type{unified_custom} = _concatenate_css($by_type{custom});
+ # build concatenated
+ if (CONCATENATE_ASSETS) {
+ $by_type{concatenated_standard_skin} = _concatenate_css($by_type{standard},
+ $by_type{skin});
+ $by_type{concatenated_custom} = _concatenate_css($by_type{custom});
+ }
return \%by_type;
}
@@ -535,7 +537,7 @@ sub _concatenate_css {
sub _css_url_rewrite {
my ($source, $url) = @_;
- # rewrite relative urls as the unified stylesheet lives in a different
+ # rewrite relative urls as the concatenated stylesheet lives in a different
# directory from the source
$url =~ s/(^['"]|['"]$)//g;
if (substr($url, 0, 1) eq '/' || substr($url, 0, 5) eq 'data:') {