From 3687ef2f8cfbbe365cae8c1fe2956c77cf49ca19 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 17 Nov 2017 22:16:34 +0000 Subject: [PATCH] Another worker process moved --- include/Contact.php | 2 +- include/remove_contact.php | 24 ------------------------ src/Worker/RemoveContact.php | 22 ++++++++++++++++++++++ 3 files changed, 23 insertions(+), 25 deletions(-) delete mode 100644 include/remove_contact.php create mode 100644 src/Worker/RemoveContact.php diff --git a/include/Contact.php b/include/Contact.php index 5d34e45262..60bef93a5a 100644 --- a/include/Contact.php +++ b/include/Contact.php @@ -68,7 +68,7 @@ function contact_remove($id) { dba::delete('contact', array('id' => $id)); // Delete the rest in the background - Worker::add(PRIORITY_LOW, 'remove_contact', $id); + Worker::add(PRIORITY_LOW, 'RemoveContact', $id); } diff --git a/include/remove_contact.php b/include/remove_contact.php deleted file mode 100644 index 9d4b1e4c37..0000000000 --- a/include/remove_contact.php +++ /dev/null @@ -1,24 +0,0 @@ - $id)); - if ($r) { - return; - } - - // Now we delete all the depending table entries - dba::delete('contact', array('id' => $id)); -} diff --git a/src/Worker/RemoveContact.php b/src/Worker/RemoveContact.php new file mode 100644 index 0000000000..2047de5261 --- /dev/null +++ b/src/Worker/RemoveContact.php @@ -0,0 +1,22 @@ + $id)); + if ($r) { + return; + } + + // Now we delete all the depending table entries + dba::delete('contact', array('id' => $id)); + } +}