X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Futil.php;h=62f7abc9ee6799f4c6740a02396c8e83d1cdfdde;hb=0876b60006da7f0ac2d6a4a01b50117a2ecca6b1;hp=6f6f1dd249121be3f5ccc34a3ebd539a48a105df;hpb=5fd0a788d58bdd7d1348e379a6ecb56498f49718;p=quix0rs-gnu-social.git diff --git a/lib/util.php b/lib/util.php index 6f6f1dd249..62f7abc9ee 100644 --- a/lib/util.php +++ b/lib/util.php @@ -742,6 +742,8 @@ function common_fancy_url($action, $args=NULL) { 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']); @@ -971,7 +973,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; }