Merge pull request #214 from hdanes/master
Fix warning: Variable access via 'index_files' is deprecated.
This commit is contained in:
commit
96475098eb
2 changed files with 3 additions and 3 deletions
|
@ -35,7 +35,7 @@ server {
|
|||
}
|
||||
<% end -%>
|
||||
<% if @index_files.count > 0 -%>
|
||||
index <% Array(index_files).each do |i| %> <%= i %><% end %>;
|
||||
index <% Array(@index_files).each do |i| %> <%= i %><% end %>;
|
||||
<% end -%>
|
||||
|
||||
access_log <%= @access_log_real %>;
|
||||
|
|
|
@ -39,7 +39,7 @@ server {
|
|||
auth_basic_user_file "<%= @auth_basic_user_file %>";
|
||||
<% end -%>
|
||||
<% if @index_files.count > 0 -%>
|
||||
index <% Array(index_files).each do |i| %> <%= i %><% end %>;
|
||||
index <% Array(@index_files).each do |i| %> <%= i %><% end %>;
|
||||
<% end -%>
|
||||
|
||||
access_log <%= @ssl_access_log %>;
|
||||
|
@ -56,4 +56,4 @@ server {
|
|||
<% end -%>
|
||||
<% if @add_header -%><% @add_header.each do |key,value| -%>
|
||||
add_header <%= key %> <%= value %>;
|
||||
<% end -%><% end -%>
|
||||
<% end -%><% end -%>
|
||||
|
|
Loading…
Reference in a new issue