]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
better hook variables for StartQueueManager
authorEvan Prodromou <evan@controlyourself.ca>
Wed, 1 Jul 2009 15:09:58 +0000 (11:09 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Wed, 1 Jul 2009 15:09:58 +0000 (11:09 -0400)
lib/queuemanager.php

index 64aca1bc124e99ee25de323bc1a0b6318a399004..92f0e10de633b8e44bb046c326ced402c7b9f0c9 100644 (file)
@@ -36,9 +36,9 @@ class QueueManager
     {
         if (empty(self::$qm)) {
 
-            if (Event::handle('StartNewQueueManager', self::$qm)) {
+            $type = common_config('queue', 'sub');
 
-                $type = common_config('queue', 'sub');
+            if (Event::handle('StartNewQueueManager', array($type, &self::$qm))) {
 
                 switch ($type) {
                  case 'db':