diff options
Diffstat (limited to 'engine/classes/ElggMetadata.php')
-rw-r--r-- | engine/classes/ElggMetadata.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/classes/ElggMetadata.php b/engine/classes/ElggMetadata.php index 1c72b1bf0..764f49067 100644 --- a/engine/classes/ElggMetadata.php +++ b/engine/classes/ElggMetadata.php @@ -30,7 +30,7 @@ class ElggMetadata extends ElggExtender { if ($id instanceof stdClass) { $metadata = $id; } else { - $metadata = get_metadata($id); + $metadata = elgg_get_metadata_by_id($id); } if ($metadata) { @@ -104,6 +104,6 @@ class ElggMetadata extends ElggExtender { * @return ElggMetadata */ public function getObjectFromID($id) { - return get_metadata($id); + return elgg_get_metadata_by_id($id); } } |