X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=scripts%2Fgetvaliddaemons.php;h=f7aa0f60f88088cf06857042cf424b3650263ccc;hb=261ccfac8699534ff584a2f93d5dcd384529d855;hp=78cbba8c079fbe3a1f01a05602a7eb99d0c9bc48;hpb=660b8f0c9c05a9416506ca7ae5493839f09c03ce;p=quix0rs-gnu-social.git diff --git a/scripts/getvaliddaemons.php b/scripts/getvaliddaemons.php index 78cbba8c07..f7aa0f60f8 100755 --- a/scripts/getvaliddaemons.php +++ b/scripts/getvaliddaemons.php @@ -33,11 +33,16 @@ 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); + +require_once INSTALLDIR.'/scripts/commandline.inc.php'; $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) {