$daemons = array();
-$daemons[] = INSTALLDIR.'/scripts/queuedaemon.php';
-
-if(common_config('xmpp','enabled')) {
- $daemons[] = INSTALLDIR.'/scripts/xmppdaemon.php';
+if (common_config('queue', 'daemon')) {
+ $daemons[] = INSTALLDIR.'/scripts/queuedaemon.php';
}
if (Event::handle('GetValidDaemons', array(&$daemons))) {