summaryrefslogtreecommitdiff
path: root/inc/common.php
diff options
context:
space:
mode:
authorAdrian Lang <lang@cosmocode.de>2009-11-19 15:25:25 +0100
committerAdrian Lang <lang@cosmocode.de>2010-01-20 10:53:21 +0100
commit8881fcc99a05f20da8fdd0f1c52f801fd84a8bb7 (patch)
tree451a84ffd9dd8b9347b15007e264bd695f881ac8 /inc/common.php
parent5b75cd1f5c479ada468fbf62a733c54edad152f1 (diff)
downloadrpg-8881fcc99a05f20da8fdd0f1c52f801fd84a8bb7.tar.gz
rpg-8881fcc99a05f20da8fdd0f1c52f801fd84a8bb7.tar.bz2
Add events to subscription.
Diffstat (limited to 'inc/common.php')
-rw-r--r--inc/common.php5
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');