Commit 7817a0a5 authored by webchick's avatar webchick

#758916 by chx and Damien Tournoud: Fixed Default queue implementation is hardwired.

parent 89fad140
......@@ -62,7 +62,10 @@ class DrupalQueue {
public static function get($name) {
static $queues;
if (!isset($queues[$name])) {
$class = variable_get('queue_module_' . $name, 'System') . 'Queue';
$class = variable_get('queue_class_' . $name, NULL);
if (!$class) {
$class = variable_get('queue_default_class', 'SystemQueue');
}
$queues[$name] = new $class($name);
}
return $queues[$name];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment