summaryrefslogtreecommitdiff
path: root/lib/queuemanager.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/queuemanager.php')
-rw-r--r--lib/queuemanager.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/queuemanager.php b/lib/queuemanager.php
index 92f0e10de..6bb21de9b 100644
--- a/lib/queuemanager.php
+++ b/lib/queuemanager.php
@@ -36,9 +36,15 @@ class QueueManager
{
if (empty(self::$qm)) {
- $type = common_config('queue', 'sub');
+ if (Event::handle('StartNewQueueManager', array(&self::$qm))) {
- if (Event::handle('StartNewQueueManager', array($type, &self::$qm))) {
+ $enabled = common_config('queue', 'enabled');
+ $type = common_config('queue', 'sub');
+
+ if (!$enabled) {
+ // does everything immediately
+ return new UnQueueManager();
+ }
switch ($type) {
case 'db':