From 48de5d7c227455dace5481cceb1a25436a9b48ff Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Mon, 18 Nov 2013 13:06:43 +0100 Subject: [PATCH] require_once is also a statement and not a function Signed-off-by: Michael Kaufmann (d00p) --- scripts/froxlor_master_cronjob.php | 4 ++-- scripts/jobs/cron_tasks.php | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/scripts/froxlor_master_cronjob.php b/scripts/froxlor_master_cronjob.php index b5000846..141f20db 100644 --- a/scripts/froxlor_master_cronjob.php +++ b/scripts/froxlor_master_cronjob.php @@ -32,7 +32,7 @@ if (isset($argv[1]) && strtolower($argv[1]) == '--help') { } /** - * check for --force to include cron_tasks + * check for --force to include cron_tasks * even if it's not its turn */ for ($x = 1; $x < count($argv); $x++) { @@ -56,7 +56,7 @@ for ($x = 1; $x < count($argv); $x++) { } foreach ($jobs_to_run as $cron) { - require_once($cron); + require_once $cron; } fwrite($debugHandler, 'Cronfiles have been included' . "\n"); diff --git a/scripts/jobs/cron_tasks.php b/scripts/jobs/cron_tasks.php index e69cc329..b9589ad1 100644 --- a/scripts/jobs/cron_tasks.php +++ b/scripts/jobs/cron_tasks.php @@ -20,13 +20,13 @@ /* * necessary includes */ -require_once(makeCorrectFile(dirname(__FILE__) . '/cron_tasks.inc.dns.10.bind.php')); -require_once(makeCorrectFile(dirname(__FILE__) . '/cron_tasks.inc.http.10.apache.php')); -require_once(makeCorrectFile(dirname(__FILE__) . '/cron_tasks.inc.http.15.apache_fcgid.php')); -require_once(makeCorrectFile(dirname(__FILE__) . '/cron_tasks.inc.http.20.lighttpd.php')); -require_once(makeCorrectFile(dirname(__FILE__) . '/cron_tasks.inc.http.25.lighttpd_fcgid.php')); -require_once(makeCorrectFile(dirname(__FILE__) . '/cron_tasks.inc.http.30.nginx.php')); -require_once(makeCorrectFile(dirname(__FILE__) . '/cron_tasks.inc.http.35.nginx_phpfpm.php')); +require_once makeCorrectFile(dirname(__FILE__) . '/cron_tasks.inc.dns.10.bind.php'); +require_once makeCorrectFile(dirname(__FILE__) . '/cron_tasks.inc.http.10.apache.php'); +require_once makeCorrectFile(dirname(__FILE__) . '/cron_tasks.inc.http.15.apache_fcgid.php'); +require_once makeCorrectFile(dirname(__FILE__) . '/cron_tasks.inc.http.20.lighttpd.php'); +require_once makeCorrectFile(dirname(__FILE__) . '/cron_tasks.inc.http.25.lighttpd_fcgid.php'); +require_once makeCorrectFile(dirname(__FILE__) . '/cron_tasks.inc.http.30.nginx.php'); +require_once makeCorrectFile(dirname(__FILE__) . '/cron_tasks.inc.http.35.nginx_phpfpm.php'); /** * LOOK INTO TASKS TABLE TO SEE IF THERE ARE ANY UNDONE JOBS