forked from GNUsocial/gnu-social
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:
parent
7be5e7e524
commit
b7940ef39f
@ -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");
|
||||||
|
Loading…
Reference in New Issue
Block a user