summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorMarcel Haerry <haerry@puzzle.ch>2009-05-26 15:08:17 +0200
committerMarcel Haerry <haerry@puzzle.ch>2009-05-26 15:08:26 +0200
commit3d77aa1b26b01a15f8335ed5741b3e99352f73da (patch)
tree44aa446e4b8f07dc37cd9291ac2726b93217e495 /templates
parentb232a1df036ae44237586ae565e25e5b69f1da0c (diff)
only enable smarty when told to
and include smarty then
Diffstat (limited to 'templates')
-rw-r--r--templates/vhosts/php/CentOS.erb4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/vhosts/php/CentOS.erb b/templates/vhosts/php/CentOS.erb
index 5b444cd..13c497e 100644
--- a/templates/vhosts/php/CentOS.erb
+++ b/templates/vhosts/php/CentOS.erb
@@ -38,7 +38,7 @@
require valid-user
<%- end -%>
php_admin_flag engine on
- php_admin_value open_basedir /usr/share/php/Smarty/:<%= documentroot %>:<%= real_php_upload_tmp_dir %>:<%= real_php_session_save_path %>
+ php_admin_value open_basedir <%- if php_use_smarty.to_s == 'true' -%>/usr/share/php/Smarty/:<%- end -%><%= documentroot %>:<%= real_php_upload_tmp_dir %>:<%= real_php_session_save_path %>
php_admin_value upload_tmp_dir <%= real_php_upload_tmp_dir %>
php_admin_value session.save_path <%= real_php_session_save_path %>
</Directory>
@@ -98,7 +98,7 @@
require valid-user
<%- end -%>
php_admin_flag engine on
- php_admin_value open_basedir /usr/share/php/Smarty/:<%= documentroot %>:<%= real_php_upload_tmp_dir %>:<%= real_php_session_save_path %>
+ php_admin_value open_basedir <%- if php_use_smarty.to_s == 'true' -%>/usr/share/php/Smarty/:<%- end -%><%= documentroot %>:<%= real_php_upload_tmp_dir %>:<%= real_php_session_save_path %>
php_admin_value upload_tmp_dir <%= real_php_upload_tmp_dir %>
php_admin_value session.save_path <%= real_php_session_save_path %>
</Directory>