summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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