From 57efdb7a465750a6e197b1c0954e0ad21b7e55bc Mon Sep 17 00:00:00 2001 From: mh Date: Sun, 9 Oct 2011 01:22:56 +0200 Subject: passing extension is not everyhwere defined --- templates/vhosts/partials/header_default.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/vhosts/partials/header_default.erb b/templates/vhosts/partials/header_default.erb index 4b4bcc2..a9a87bc 100644 --- a/templates/vhosts/partials/header_default.erb +++ b/templates/vhosts/partials/header_default.erb @@ -15,6 +15,6 @@ <% if default_charset.to_s != 'absent' then -%> AddDefaultCharset <%= default_charset %> <% end -%> -<% unless passing_extension.to_s.empty? -%> +<% if has_variable?('passing_extension') && !passing_extension.to_s.empty? -%> DirectoryIndex index.htm index.html index.<%= passing_extension %> <% end -%> \ No newline at end of file -- cgit v1.2.3