forked from GNUsocial/gnu-social
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:
parent
7f4e6aaafa
commit
88c4630063
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user