From 334ebde9b637dbeddaa68e3fa915928c4692d75c Mon Sep 17 00:00:00 2001 From: Harry Danes Date: Sun, 29 Dec 2013 16:13:17 +0100 Subject: [PATCH] Fix warning: Variable access via 'index_files' is deprecated. Use '@index_files' instead. --- templates/vhost/vhost_header.erb | 2 +- templates/vhost/vhost_ssl_header.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/vhost/vhost_header.erb b/templates/vhost/vhost_header.erb index 274a6599e..d0d7382b7 100644 --- a/templates/vhost/vhost_header.erb +++ b/templates/vhost/vhost_header.erb @@ -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 %>; diff --git a/templates/vhost/vhost_ssl_header.erb b/templates/vhost/vhost_ssl_header.erb index a7ba50442..efe9f3a17 100644 --- a/templates/vhost/vhost_ssl_header.erb +++ b/templates/vhost/vhost_ssl_header.erb @@ -21,7 +21,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 %>;