]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Dynamically enable scripts/queuedaemon.php into scripts/getvaliddaemons.php depending...
authorJean Baptiste Favre <github@jbfavre.org>
Mon, 24 Feb 2014 18:32:29 +0000 (19:32 +0100)
committerJean Baptiste Favre <github@jbfavre.org>
Sat, 1 Mar 2014 11:16:38 +0000 (12:16 +0100)
scripts/getvaliddaemons.php

index b4e1e57e43be85a25af4e8bfd3b021d1dea21d5c..909060722486deddbfef5639434b91c6cbfbfbfa 100755 (executable)
@@ -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) {