From 88c463006308c1a8377a8554b69b952950c40458 Mon Sep 17 00:00:00 2001 From: Jean Baptiste Favre Date: Mon, 24 Feb 2014 19:32:29 +0100 Subject: [PATCH] Dynamically enable scripts/queuedaemon.php into scripts/getvaliddaemons.php depending on common_config('queue', 'daemon') value. True = enabled, False=disabled. Default is false (see previous commit) --- scripts/getvaliddaemons.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/getvaliddaemons.php b/scripts/getvaliddaemons.php index b4e1e57e43..9090607224 100755 --- a/scripts/getvaliddaemons.php +++ b/scripts/getvaliddaemons.php @@ -37,7 +37,9 @@ require_once INSTALLDIR.'/scripts/commandline.inc'; $daemons = array(); -#$daemons[] = INSTALLDIR.'/scripts/queuedaemon.php'; +if (common_config('queue', 'daemon')) { + $daemons[] = INSTALLDIR.'/scripts/queuedaemon.php'; +} if (Event::handle('GetValidDaemons', array(&$daemons))) { foreach ($daemons as $daemon) { -- 2.39.5