From e956aca559ffa3f53c9e39beed6226f342e1d526 Mon Sep 17 00:00:00 2001
From: Marius Cramer <m.cramer@pixcept.de>
Date: Wed, 15 Apr 2015 08:25:39 -0400
Subject: [PATCH] - patches for some errors

---
 server/cron.php                               |    2 +-
 server/plugins-available/nginx_plugin.inc.php |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/cron.php b/server/cron.php
index 7a43d04..c197da9 100644
--- a/server/cron.php
+++ b/server/cron.php
@@ -74,7 +74,7 @@
 			unset($cronjob);
 			continue;
 		}
-		print 'Included ' . $class_name . ' from ' . $file_path . ' -> will now run job.' . "\n";
+		print 'Included ' . $class_name . ' from ' . $path . '/' . $f . ' -> will now run job.' . "\n";
 
 		$cronjob->run();
 
diff --git a/server/plugins-available/nginx_plugin.inc.php b/server/plugins-available/nginx_plugin.inc.php
index 15fd046..de6a7a4 100644
--- a/server/plugins-available/nginx_plugin.inc.php
+++ b/server/plugins-available/nginx_plugin.inc.php
@@ -2365,7 +2365,7 @@
  		} elseif($data['new']['php'] != 'hhvm' && $data['old']['php'] == 'hhvm') {
 			exec('/etc/init.d/hhvm_' . $data['old']['system_user'] . ' stop >/dev/null 2>&1');
 			exec('/usr/sbin/update-rc.d hhvm_' . $data['old']['system_user'] . ' remove >/dev/null 2>&1');
-			unlink('/etc/init.d/hhvm_' . $data['old']['system_user'] . ' >/dev/null 2>&1');
+			unlink('/etc/init.d/hhvm_' . $data['old']['system_user']);
 		}
 	}
 

--
Gitblit v1.9.1