diff options
Diffstat (limited to 'engine/classes/ElggFile.php')
-rw-r--r-- | engine/classes/ElggFile.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/engine/classes/ElggFile.php b/engine/classes/ElggFile.php index 2a0d6fb28..961a6ef13 100644 --- a/engine/classes/ElggFile.php +++ b/engine/classes/ElggFile.php @@ -315,7 +315,11 @@ class ElggFile extends ElggObject { // If filestore meta set then retrieve filestore // @todo Better way of doing this? - $metas = get_metadata_for_entity($this->guid); + // ^ Yes....yes there is. + $metas = elgg_get_metadata(array( + 'guid' => $this->guid, + 'limit' => 0 + )); $parameters = array(); if (is_array($metas)) { foreach ($metas as $meta) { |