return common_path('settings/email');
case 'openidsettings':
return common_path('settings/openid');
+ case 'smssettings':
+ return common_path('settings/sms');
case 'newnotice':
if ($args && $args['replyto']) {
return common_path('notice/new?replyto='.$args['replyto']);
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;
}