From: Evan Prodromou Date: Wed, 1 Jul 2009 15:09:58 +0000 (-0400) Subject: better hook variables for StartQueueManager X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4c256a6d7ee287def5c26f401c8caa6bfe0b8dff;p=quix0rs-gnu-social.git better hook variables for StartQueueManager --- diff --git a/lib/queuemanager.php b/lib/queuemanager.php index 64aca1bc12..92f0e10de6 100644 --- a/lib/queuemanager.php +++ b/lib/queuemanager.php @@ -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':