X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=scripts%2Fgetvaliddaemons.php;h=80c21bce581c3c0dcb65cc60b52f0985e4ef329c;hb=fb4b004435403dd0d4126a0c11c9fa5c557e9dba;hp=99ad41b37471aae803949c025a87b7619087bf14;hpb=3c724ccd0df0d205a9567e435b6060300537f904;p=quix0rs-gnu-social.git diff --git a/scripts/getvaliddaemons.php b/scripts/getvaliddaemons.php index 99ad41b374..f7aa0f60f8 100755 --- a/scripts/getvaliddaemons.php +++ b/scripts/getvaliddaemons.php @@ -33,23 +33,15 @@ by the startdaemons script ENDOFHELP; -require_once INSTALLDIR.'/scripts/commandline.inc'; +// No unnecessary error reporting to avoid invalid daemon names +error_reporting(E_ALL & ~E_STRICT & ~E_NOTICE); -$daemons = array(); - -$daemons[] = INSTALLDIR.'/scripts/pluginqueuehandler.php'; -$daemons[] = INSTALLDIR.'/scripts/ombqueuehandler.php'; -$daemons[] = INSTALLDIR.'/scripts/pingqueuehandler.php'; +require_once INSTALLDIR.'/scripts/commandline.inc.php'; -if(common_config('xmpp','enabled')) { - $daemons[] = INSTALLDIR.'/scripts/xmppdaemon.php'; - $daemons[] = INSTALLDIR.'/scripts/jabberqueuehandler.php'; - $daemons[] = INSTALLDIR.'/scripts/publicqueuehandler.php'; - $daemons[] = INSTALLDIR.'/scripts/xmppconfirmhandler.php'; -} +$daemons = array(); -if (common_config('sms', 'enabled')) { - $daemons[] = INSTALLDIR.'/scripts/smsqueuehandler.php'; +if (common_config('queue', 'daemon')) { + $daemons[] = INSTALLDIR.'/scripts/queuedaemon.php'; } if (Event::handle('GetValidDaemons', array(&$daemons))) {