From 0d34cd24abc0329aae7d408b3bab3d692caaa045 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sat, 24 Jan 2009 19:38:40 +0100 Subject: 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. --- lib/util.php | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'lib/util.php') 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; -- cgit v1.2.3-54-g00ecf