From de85edc2cb331f556b5186cdd77fb3f3e12cca40 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 13 Sep 2013 15:29:50 +0100 Subject: [PATCH] Fix deprecated variable access warning in vhost footer template --- templates/vhost/vhost_footer.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/vhost/vhost_footer.erb b/templates/vhost/vhost_footer.erb index 0f70a7de7..3181d4bf5 100644 --- a/templates/vhost/vhost_footer.erb +++ b/templates/vhost/vhost_footer.erb @@ -4,7 +4,7 @@ include <%= file %>; <%# make sure that allow comes before deny by forcing the allow key (if it -%> <%# exists) to be first in the output order. The hash keys also need to be -%> <%# sorted so that the ordering is stable. -%> -<% if @vhost_cfg_append -%><% vhost_cfg_append.sort_by{ |k, v| k.to_s == 'allow' ? '' : k.to_s }.each do |key,value| -%> +<% if @vhost_cfg_append -%><% @vhost_cfg_append.sort_by{ |k, v| k.to_s == 'allow' ? '' : k.to_s }.each do |key,value| -%> <%= key %> <%= value %>; <% end -%> <% end -%>