summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2011-10-09 01:22:56 +0200
committermh <mh@immerda.ch>2011-10-09 01:22:56 +0200
commit57efdb7a465750a6e197b1c0954e0ad21b7e55bc (patch)
tree92164cdeedb3d154204b29a96116d36cd310a4cc /templates
parent7532b47f7e62dc705e92051beee75968f5c226c5 (diff)
passing extension is not everyhwere defined
Diffstat (limited to 'templates')
-rw-r--r--templates/vhosts/partials/header_default.erb2
1 files changed, 1 insertions, 1 deletions
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