Skip to content

Commit 6612062

Browse files
committed
Bug 1072110: _concatenate_js assumes javascript_urls is an array
1 parent ce91bc0 commit 6612062

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Bugzilla/Template.pm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,8 @@ sub _css_url_rewrite {
528528
sub _concatenate_js {
529529
return @_ unless CONCATENATE_ASSETS;
530530
my ($sources) = @_;
531-
return [] unless $sources && ref($sources);
531+
return [] unless $sources;
532+
$sources = ref($sources) ? $sources : [ $sources ];
532533

533534
my %files =
534535
map {

template/en/default/attachment/diff-header.html.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Interdiff of #[% oldid %] and #[% newid %] for [% terms.bug %] #[% bugid %]
5252
[% bugsummary FILTER html %]
5353
[% END %]
5454
[% PROCESS global/header.html.tmpl doc_section = "attachments.html#patchviewer"
55-
javascript_urls = "js/attachment.js"
55+
javascript_urls = [ "js/attachment.js" ]
5656
style_urls = ['skins/standard/attachment.css'] %]
5757
[% ELSE %]
5858
<html>

template/en/default/list/change-columns.html.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
[% PROCESS global/header.html.tmpl
2525
title = "Change Columns"
26-
javascript_urls = "js/change-columns.js"
26+
javascript_urls = [ "js/change-columns.js" ]
2727
onload = "initChangeColumns()"
2828
%]
2929

0 commit comments

Comments
 (0)