Fix unqueuemanager to work with new Queue layout pushed in 0e852def6a

"* Queue handlers should now define a handle() method instead of handle_notice()"

And Queue managers should call handle() :)
This commit is contained in:
Eric Helgeson 2010-01-22 11:02:23 -05:00
parent 7be5e7e524
commit b7940ef39f

View File

@ -47,7 +47,7 @@ class UnQueueManager extends QueueManager
$handler = $this->getHandler($queue); $handler = $this->getHandler($queue);
if ($handler) { if ($handler) {
$handler->handle_notice($notice); $handler->handle($notice);
} else { } else {
if (Event::handle('UnqueueHandleNotice', array(&$notice, $queue))) { if (Event::handle('UnqueueHandleNotice', array(&$notice, $queue))) {
throw new ServerException("UnQueueManager: Unknown queue: $queue"); throw new ServerException("UnQueueManager: Unknown queue: $queue");