From: Jean Baptiste Favre Date: Mon, 24 Feb 2014 18:32:29 +0000 (+0100) Subject: Dynamically enable scripts/queuedaemon.php into scripts/getvaliddaemons.php depending... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=88c463006308c1a8377a8554b69b952950c40458;p=quix0rs-gnu-social.git 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) --- 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) {