diff options
author | David Rothstein <drothstein@gmail.com> | 2015-10-12 00:54:08 -0400 |
---|---|---|
committer | David Rothstein <drothstein@gmail.com> | 2015-10-12 00:54:08 -0400 |
commit | 3d1be9b5ca8cf7baadeb2e86665c080526d805cf (patch) | |
tree | b5858dba12b203000fb2e661a4c86d28644c8905 /includes/common.inc | |
parent | 890d98ac96b578206733236ecc23acaf57585454 (diff) | |
download | brdo-3d1be9b5ca8cf7baadeb2e86665c080526d805cf.tar.gz brdo-3d1be9b5ca8cf7baadeb2e86665c080526d805cf.tar.bz2 |
Issue #2342667 by claudiu.cristea, Dave Reid, ndobromirov: Cron and batch processing of queues are not accepting callables
Diffstat (limited to 'includes/common.inc')
-rw-r--r-- | includes/common.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/common.inc b/includes/common.inc index e863f411f..5268fd830 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -5380,12 +5380,12 @@ function drupal_cron_run() { // Do not run if queue wants to skip. continue; } - $function = $info['worker callback']; + $callback = $info['worker callback']; $end = time() + (isset($info['time']) ? $info['time'] : 15); $queue = DrupalQueue::get($queue_name); while (time() < $end && ($item = $queue->claimItem())) { try { - $function($item->data); + call_user_func($callback, $item->data); $queue->deleteItem($item); } catch (Exception $e) { |