aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/notification.php
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-02-17 23:14:33 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-02-17 23:14:33 +0000
commitba94a48ff66a001dd20c5ac2da34681880583945 (patch)
tree29b0ebfcd19ba03c69cd8ad7e4171c0002b3d207 /engine/lib/notification.php
parentb3012350e2d8dafaf696e2c472f8cf0ae5e1674b (diff)
downloadelgg-ba94a48ff66a001dd20c5ac2da34681880583945.tar.gz
elgg-ba94a48ff66a001dd20c5ac2da34681880583945.tar.bz2
Fixes #1488: Removed use of deprecated functions in core.
git-svn-id: http://code.elgg.org/elgg/trunk@3947 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/notification.php')
-rw-r--r--engine/lib/notification.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/engine/lib/notification.php b/engine/lib/notification.php
index 0e66e1ff9..adc4ebace 100644
--- a/engine/lib/notification.php
+++ b/engine/lib/notification.php
@@ -401,8 +401,13 @@ function object_notifications($event, $object_type, $object) {
// Get users interested in content from this person and notify them
// (Person defined by container_guid so we can also subscribe to groups if we want)
foreach($NOTIFICATION_HANDLERS as $method => $foo) {
- $interested_users = get_entities_from_relationship('notify' . $method,
- $object->container_guid, true, 'user', '', 0, '', 99999);
+ $interested_users = elgg_get_entities_from_relationship(array(
+ 'relationship' => 'notify' . $method,
+ 'relationship_guid' => $object->container_guid,
+ 'inverse_relationship' => TRUE,
+ 'types' => 'user',
+ 'limit' => 99999
+ ));
if ($interested_users && is_array($interested_users)) {
foreach($interested_users as $user) {
@@ -430,4 +435,4 @@ function object_notifications($event, $object_type, $object) {
// Register a startup event
register_elgg_event_handler('init','system','notification_init',0);
-register_elgg_event_handler('create','object','object_notifications'); \ No newline at end of file
+register_elgg_event_handler('create','object','object_notifications');