summaryrefslogtreecommitdiff
path: root/lib/util.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/util.php')
-rw-r--r--lib/util.php8
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;
}