Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
14ee8431
Commit
14ee8431
authored
Oct 13, 2016
by
Dylan William Hardison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 1309884 - constants.CONCATENATE_ASSETS gets constant folded when true
parent
7d445a42
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
Template.pm
Bugzilla/Template.pm
+7
-5
header.html.tmpl
template/en/default/global/header.html.tmpl
+5
-7
No files found.
Bugzilla/Template.pm
View file @
14ee8431
...
@@ -450,10 +450,12 @@ sub css_files {
...
@@ -450,10 +450,12 @@ sub css_files {
}
}
}
}
# build unified
# build concatenated
$by_type
{
unified_standard_skin
}
=
_concatenate_css
(
$by_type
{
standard
},
if
(
CONCATENATE_ASSETS
)
{
$by_type
{
skin
});
$by_type
{
concatenated_standard_skin
}
=
_concatenate_css
(
$by_type
{
standard
},
$by_type
{
unified_custom
}
=
_concatenate_css
(
$by_type
{
custom
});
$by_type
{
skin
});
$by_type
{
concatenated_custom
}
=
_concatenate_css
(
$by_type
{
custom
});
}
return
\%
by_type
;
return
\%
by_type
;
}
}
...
@@ -535,7 +537,7 @@ sub _concatenate_css {
...
@@ -535,7 +537,7 @@ sub _concatenate_css {
sub
_css_url_rewrite
{
sub
_css_url_rewrite
{
my
(
$source
,
$url
)
=
@_
;
my
(
$source
,
$url
)
=
@_
;
# rewrite relative urls as the
unifi
ed stylesheet lives in a different
# rewrite relative urls as the
concatenat
ed stylesheet lives in a different
# directory from the source
# directory from the source
$url
=~
s/(^['"]|['"]$)//g
;
$url
=~
s/(^['"]|['"]$)//g
;
if
(
substr
(
$url
,
0
,
1
)
eq
'/'
||
substr
(
$url
,
0
,
5
)
eq
'data:'
)
{
if
(
substr
(
$url
,
0
,
1
)
eq
'/'
||
substr
(
$url
,
0
,
5
)
eq
'data:'
)
{
...
...
template/en/default/global/header.html.tmpl
View file @
14ee8431
...
@@ -113,8 +113,8 @@
...
@@ -113,8 +113,8 @@
[% END %]
[% END %]
[% SET css_sets = css_files(style_urls, yui, yui_css) %]
[% SET css_sets = css_files(style_urls, yui, yui_css) %]
[% IF c
onstants.CONCATENATE_ASSETS
%]
[% IF c
ss_sets.concatenated_standard_skin
%]
[% PROCESS format_css_link asset_url = css_sets.
unifi
ed_standard_skin %]
[% PROCESS format_css_link asset_url = css_sets.
concatenat
ed_standard_skin %]
[% ELSE %]
[% ELSE %]
[% FOREACH asset_url = css_sets.standard %]
[% FOREACH asset_url = css_sets.standard %]
[% PROCESS format_css_link %]
[% PROCESS format_css_link %]
...
@@ -130,14 +130,12 @@
...
@@ -130,14 +130,12 @@
</style>
</style>
[% END %]
[% END %]
[% IF css_sets.unified_custom %]
[% IF css_sets.concatenated_custom %]
[% IF constants.CONCATENATE_ASSETS %]
[% PROCESS format_css_link asset_url = css_sets.concatenated_custom %]
[% PROCESS format_css_link asset_url = css_sets.unified_custom %]
[% ELSE %]
[% ELSE %]
[% FOREACH asset_url = css_sets.custom %]
[% FOREACH asset_url = css_sets.custom %]
[% PROCESS format_css_link %]
[% PROCESS format_css_link %]
[% END %]
[% END %]
[% END %]
[% END %]
[% END %]
[% IF NOT no_yui %]
[% IF NOT no_yui %]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment