From 3d77aa1b26b01a15f8335ed5741b3e99352f73da Mon Sep 17 00:00:00 2001 From: Marcel Haerry Date: Tue, 26 May 2009 15:08:17 +0200 Subject: only enable smarty when told to and include smarty then --- templates/vhosts/php/CentOS.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'templates/vhosts/php/CentOS.erb') 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 %> @@ -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 %> -- cgit v1.2.3