From 00a0a4337e2f0fe419ffbaa19451b539dabb208a Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Fri, 17 Jan 2014 11:12:37 +0100 Subject: [PATCH] fix nginx configs-generation when setting is 'one file', thx to pcdummy Signed-off-by: Michael Kaufmann (d00p) --- scripts/jobs/cron_tasks.inc.http.30.nginx.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/jobs/cron_tasks.inc.http.30.nginx.php b/scripts/jobs/cron_tasks.inc.http.30.nginx.php index 1c069edb..e640db67 100644 --- a/scripts/jobs/cron_tasks.inc.http.30.nginx.php +++ b/scripts/jobs/cron_tasks.inc.http.30.nginx.php @@ -261,7 +261,7 @@ class nginx { $this->nginx_data[$vhost_filename] = ''; } - if ((!empty($this->nginx_data[$vhost_filename]) + if ((empty($this->nginx_data[$vhost_filename]) && !is_dir(Settings::Get('system.apacheconf_vhost'))) || is_dir(Settings::Get('system.apacheconf_vhost')) ) {