a couple of things to make queue items work
darcs-hash:20080704052240-34904-c6458bbd6842cd8a86929bba60fb0d4408b56345.gz
This commit is contained in:
@@ -820,9 +820,11 @@ function common_broadcast_notice($notice, $remote=false) {
|
||||
|
||||
function common_enqueue_notice($notice) {
|
||||
$qi = new Queue_item();
|
||||
$qi->query('BEGIN');
|
||||
$qi->notice_id = $notice->id;
|
||||
$qi->created = DB_DataObject_Cast::dateTime();
|
||||
$result = $qi->insert();
|
||||
$qi->query('COMMIT');
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user