Skip to content

Commit

Permalink
Merge pull request voxpupuli#140 from alanpearce/patch-1
Browse files Browse the repository at this point in the history
Fix deprecated variable access warning in vhost footer template
  • Loading branch information
James Fryman committed Sep 16, 2013
2 parents 5e59a92 + de85edc commit 7945539
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/vhost/vhost_footer.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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 -%>
Expand Down

0 comments on commit 7945539

Please sign in to comment.