add sms broadcast to broadcasting

darcs-hash:20080720195549-84dde-4193f27f8efda497fbe55f1c514fe30e4dd8a69d.gz
This commit is contained in:
Evan Prodromou
2008-07-20 15:55:49 -04:00
parent b6756fc8d1
commit 3372a98f8e
2 changed files with 39 additions and 1 deletions

View File

@@ -971,7 +971,13 @@ function common_real_broadcast($notice, $remote=false) {
common_log(LOG_ERR, 'Error in jabber broadcast for notice ' . $notice->id);
}
}
// XXX: broadcast notices to SMS
if ($success) {
require_once(INSTALLDIR.'/lib/mail.php');
$success = mail_broadcast_notice_sms($notice);
if (!$success) {
common_log(LOG_ERR, 'Error in sms broadcast for notice ' . $notice->id);
}
}
// XXX: broadcast notices to other IM
return $success;
}