/** * Send a list mail * * Sends a list mail showing a list of changed pages. * * @param string $subscriber_mail The target mail address * @param array $ids Array of ids * @param string $ns_id The id of the namespace * * @author Adrian Lang <*****@*****.**> */ function subscription_send_list($subscriber_mail, $ids, $ns_id) { if (count($ids) === 0) { return; } global $conf; $list = ''; foreach ($ids as $id) { $list .= '* ' . wl($id, array(), true) . NL; } subscription_send($subscriber_mail, array('DIFF' => rtrim($list), 'SUBSCRIBE' => wl($ns_id . $conf['start'], array('do' => 'subscribe'), true, '&')), 'subscribe_list', prettyprint_id($ns_id), 'subscr_list'); }
/** * Send a list mail * * Sends a list mail showing a list of changed pages. * * @param string $subscriber_mail The target mail address * @param array $changes Array of changes * @param string $id The id of the namespace * * @author Adrian Lang <*****@*****.**> */ function subscription_send_list($subscriber_mail, $changes, $id) { global $conf; $list = ''; foreach ($changes as $change) { $list .= '* ' . wl($change['id'], array(), true) . NL; } subscription_send($subscriber_mail, array('DIFF' => rtrim($list), 'SUBSCRIBE' => wl($id . $conf['start'], array('do' => 'subscribe'), true, '&')), 'subscribe_list', prettyprint_id($id), 'subscr_list'); }