summaryrefslogtreecommitdiff
path: root/inc/subscription.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2012-12-07 10:35:27 +0100
committerAndreas Gohr <andi@splitbrain.org>2012-12-07 10:35:27 +0100
commite13e01da48b642dcdf3efe6864f0fc2bb5094455 (patch)
tree58bb5cd560d0f27fdb533e638daee8b707c2a4d8 /inc/subscription.php
parent790b77202079261b11d425e0c814608d626eea70 (diff)
downloadrpg-e13e01da48b642dcdf3efe6864f0fc2bb5094455.tar.gz
rpg-e13e01da48b642dcdf3efe6864f0fc2bb5094455.tar.bz2
added compatibility function
Diffstat (limited to 'inc/subscription.php')
-rw-r--r--inc/subscription.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/inc/subscription.php b/inc/subscription.php
index bfbd95244..df6f1af32 100644
--- a/inc/subscription.php
+++ b/inc/subscription.php
@@ -604,4 +604,19 @@ class Subscription {
}
$data['addresslist'] = trim($addresslist.','.implode(',', $result), ',');
}
+}
+
+/**
+ * Compatibility wrapper around Subscription:notifyaddresses
+ *
+ * for plugins emitting COMMON_NOTIFY_ADDRESSLIST themselves and relying on on this to
+ * be the default handler
+ *
+ * @param array $data event data for
+ *
+ * @deprecated 2012-12-07
+ */
+function subscription_addresslist(&$data){
+ $sub = new Subscription();
+ $sub->notifyaddresses($data);
} \ No newline at end of file