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)

This commit is contained in:
Jean Baptiste Favre 2014-02-24 19:32:29 +01:00
parent 7f4e6aaafa
commit 88c4630063

View File

@ -37,7 +37,9 @@ require_once INSTALLDIR.'/scripts/commandline.inc';
$daemons = array(); $daemons = array();
#$daemons[] = INSTALLDIR.'/scripts/queuedaemon.php'; if (common_config('queue', 'daemon')) {
$daemons[] = INSTALLDIR.'/scripts/queuedaemon.php';
}
if (Event::handle('GetValidDaemons', array(&$daemons))) { if (Event::handle('GetValidDaemons', array(&$daemons))) {
foreach ($daemons as $daemon) { foreach ($daemons as $daemon) {