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) {