Skip to content

Commit 2e23301

Browse files
committed
Further Compatibility fixes for Redmine 1.1/backward compatibility
1) Allow the csrf_meta_tag() in popup.erb to fail gracefully, since version skew in the Rails installation on some Debian platforms causes this operation to fail (complaining about a missing String#html_safe). 2) Also in popup.erb, if helper function "javascript_heads" not defined (it isn't in Redmine 1.1), simply use "javascript_include_tag" to get javascript included.
1 parent 487e907 commit 2e23301

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: app/views/layouts/popup.erb

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
55
<meta name="description" content="<%= Redmine::Info.app_name %>" />
66
<meta name="keywords" content="issue,bug,tracker" />
7-
<%= csrf_meta_tag %>
7+
<%= begin csrf_meta_tag; rescue; "" end %>
88
<%= favicon %>
99
<%= stylesheet_link_tag 'application', :media => 'all' %>
1010
<%= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %>
11-
<%= javascript_heads %>
11+
<%= defined?(javascript_heads)? javascript_heads : javascript_include_tag(:defaults) %>
1212
<%= heads_for_theme %>
1313
<!--[if IE 6]>
1414
<style type="text/css">

0 commit comments

Comments
 (0)