aboutsummaryrefslogtreecommitdiff
path: root/pages/edit_multiple.php
diff options
context:
space:
mode:
Diffstat (limited to 'pages/edit_multiple.php')
-rw-r--r--pages/edit_multiple.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/pages/edit_multiple.php b/pages/edit_multiple.php
index 938ac203c..7c7b989cf 100644
--- a/pages/edit_multiple.php
+++ b/pages/edit_multiple.php
@@ -15,7 +15,14 @@ set_page_owner(get_loggedin_userid());
$batch = get_input('batch');
if ($batch) {
- $images = get_entities_from_metadata('batch', $batch, 'object', 'image', get_loggedin_userid(), 100);
+ $images = elgg_get_entities_from_metadata(array(
+ 'metadata_name' => 'batch',
+ 'metadata_value' => $batch,
+ 'type' => 'object',
+ 'subtype' => 'image',
+ 'owner_guid' => get_loggedin_userid(),
+ 'limit' => ELGG_ENTITIES_NO_VALUE,
+ ));
} else {
// parse out photo guids
$file_string = get_input('files');