a couple of things to make queue items work
darcs-hash:20080704052240-34904-c6458bbd6842cd8a86929bba60fb0d4408b56345.gz
This commit is contained in:
parent
73a0271960
commit
985ba79b4a
|
@ -97,5 +97,6 @@ require_once(INSTALLDIR.'/classes/Subscription.php');
|
||||||
require_once(INSTALLDIR.'/classes/User.php');
|
require_once(INSTALLDIR.'/classes/User.php');
|
||||||
require_once(INSTALLDIR.'/classes/Confirm_address.php');
|
require_once(INSTALLDIR.'/classes/Confirm_address.php');
|
||||||
require_once(INSTALLDIR.'/classes/Remember_me.php');
|
require_once(INSTALLDIR.'/classes/Remember_me.php');
|
||||||
|
require_once(INSTALLDIR.'/classes/Queue_item.php');
|
||||||
|
|
||||||
require_once('markdown.php');
|
require_once('markdown.php');
|
||||||
|
|
|
@ -820,9 +820,11 @@ function common_broadcast_notice($notice, $remote=false) {
|
||||||
|
|
||||||
function common_enqueue_notice($notice) {
|
function common_enqueue_notice($notice) {
|
||||||
$qi = new Queue_item();
|
$qi = new Queue_item();
|
||||||
|
$qi->query('BEGIN');
|
||||||
$qi->notice_id = $notice->id;
|
$qi->notice_id = $notice->id;
|
||||||
$qi->created = DB_DataObject_Cast::dateTime();
|
$qi->created = DB_DataObject_Cast::dateTime();
|
||||||
$result = $qi->insert();
|
$result = $qi->insert();
|
||||||
|
$qi->query('COMMIT');
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user