diff options
author | Adrian Lang <lang@cosmocode.de> | 2009-11-19 15:25:25 +0100 |
---|---|---|
committer | Adrian Lang <lang@cosmocode.de> | 2010-01-20 10:53:21 +0100 |
commit | 8881fcc99a05f20da8fdd0f1c52f801fd84a8bb7 (patch) | |
tree | 451a84ffd9dd8b9347b15007e264bd695f881ac8 /inc/common.php | |
parent | 5b75cd1f5c479ada468fbf62a733c54edad152f1 (diff) | |
download | rpg-8881fcc99a05f20da8fdd0f1c52f801fd84a8bb7.tar.gz rpg-8881fcc99a05f20da8fdd0f1c52f801fd84a8bb7.tar.bz2 |
Add events to subscription.
Diffstat (limited to 'inc/common.php')
-rw-r--r-- | inc/common.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/inc/common.php b/inc/common.php index 2cc279844..9cadb56fd 100644 --- a/inc/common.php +++ b/inc/common.php @@ -1061,7 +1061,10 @@ function notify($id,$who,$rev='',$summary='',$minor=false,$replace=array()){ }elseif($who == 'subscribers'){ if(!$conf['subscribers']) return; //subscribers enabled? if($conf['useacl'] && $_SERVER['REMOTE_USER'] && $minor) return; //skip minors - $bcc = subscription_addresslist($id,false); + $data = array('id' => $id, 'addresslist' => '', 'self' => false); + trigger_event('COMMON_NOTIFY_ADDRESSLIST', $data, + 'subscription_addresslist'); + $bcc = $data['addresslist']; if(empty($bcc)) return; $to = ''; $text = rawLocale('subscr_single'); |