diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-07-20 15:55:49 -0400 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-07-20 15:55:49 -0400 |
commit | 3372a98f8eddd619a4a1fa7108b726e3f26acfcc (patch) | |
tree | 68eceff97cd3c907631fb722d514ba03bd3761f4 /lib/util.php | |
parent | b6756fc8d1716be5f9daf1b1c0ba492bcb14c60e (diff) |
add sms broadcast to broadcasting
darcs-hash:20080720195549-84dde-4193f27f8efda497fbe55f1c514fe30e4dd8a69d.gz
Diffstat (limited to 'lib/util.php')
-rw-r--r-- | lib/util.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/util.php b/lib/util.php index 6f6f1dd24..e49bb3749 100644 --- a/lib/util.php +++ b/lib/util.php @@ -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; } |