diff options
Diffstat (limited to 'engine/lib')
-rw-r--r-- | engine/lib/metadata.php | 6 | ||||
-rw-r--r-- | engine/lib/notification.php | 6 |
2 files changed, 11 insertions, 1 deletions
diff --git a/engine/lib/metadata.php b/engine/lib/metadata.php index c123a89b0..600e72e71 100644 --- a/engine/lib/metadata.php +++ b/engine/lib/metadata.php @@ -328,6 +328,12 @@ function delete_metadata($id) { * * @see elgg_get_entities * + * @warning 1.7's find_metadata() didn't support limits and returned all metadata. + * This function defaults to a limit of 25. There is probably not a reason + * for you to return all metadata unless you're exporting an entity, + * have other restraints in place, or are doing something horribly + * wrong in your code. + * * @param array $options Array in format: * * metadata_names => NULL|ARR metadata names diff --git a/engine/lib/notification.php b/engine/lib/notification.php index 841920d8b..b48fec2fe 100644 --- a/engine/lib/notification.php +++ b/engine/lib/notification.php @@ -173,7 +173,11 @@ function get_user_notification_settings($user_guid = 0) { $user_guid = elgg_get_logged_in_user_guid(); } - $all_metadata = get_metadata_for_entity($user_guid); + // @todo: holy crap, really? + $all_metadata = elgg_get_metadata(array( + 'guid' => $user_guid, + 'limit' => 0 + )); if ($all_metadata) { $prefix = "notification:method:"; $return = new stdClass; |