summaryrefslogtreecommitdiff
path: root/lib/util.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-01-24 19:38:40 +0100
committerEvan Prodromou <evan@controlyourself.ca>2009-01-24 19:38:40 +0100
commit0d34cd24abc0329aae7d408b3bab3d692caaa045 (patch)
treeff0751391eeb3023d4a9eda4168c30b596449255 /lib/util.php
parent1f4edd70cbe28783784c41eda6c93008bbf86a78 (diff)
Update notice deletion
Changed the errors in notice deletion so it now works. Also, consistently delete records from related tables that refer to the notice.
Diffstat (limited to 'lib/util.php')
-rw-r--r--lib/util.php17
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/util.php b/lib/util.php
index b5b194519..a80c62287 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -1140,23 +1140,6 @@ function common_enqueue_notice($notice)
return $result;
}
-function common_dequeue_notice($notice)
-{
- $qi = Queue_item::staticGet($notice->id);
- if ($qi) {
- $result = $qi->delete();
- if (!$result) {
- $last_error = &PEAR::getStaticProperty('DB_DataObject','lastError');
- common_log(LOG_ERR, 'DB error deleting queue item: ' . $last_error->message);
- return false;
- }
- common_log(LOG_DEBUG, 'complete dequeueing notice ID = ' . $notice->id);
- return $result;
- } else {
- return false;
- }
-}
-
function common_real_broadcast($notice, $remote=false)
{
$success = true;