aboutsummaryrefslogtreecommitdiff
path: root/engine/classes/ElggEntity.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/classes/ElggEntity.php')
-rw-r--r--engine/classes/ElggEntity.php13
1 files changed, 8 insertions, 5 deletions
diff --git a/engine/classes/ElggEntity.php b/engine/classes/ElggEntity.php
index cf716b37d..2adb322de 100644
--- a/engine/classes/ElggEntity.php
+++ b/engine/classes/ElggEntity.php
@@ -128,7 +128,10 @@ abstract class ElggEntity extends ElggData implements
return;
}
- $metadata_array = get_metadata_for_entity($this->guid);
+ $metadata_array = elgg_get_metadata(array(
+ 'guid' => $this->guid,
+ 'limit' => 0
+ ));
$this->attributes['guid'] = "";
@@ -871,7 +874,7 @@ abstract class ElggEntity extends ElggData implements
*
* Plugins can register for the 'entity:icon:url', <type> plugin hook
* to customize the icon for an entity.
- *
+ *
* @param string $size Size of the icon: tiny, small, medium, large
*
* @return string The URL
@@ -887,15 +890,15 @@ abstract class ElggEntity extends ElggData implements
$url = "_graphics/icons/default/$size.png";
$url = elgg_normalize_url($url);
-
+
$type = $this->getType();
$params = array(
'entity' => $this,
'size' => $size,
);
-
+
$url = elgg_trigger_plugin_hook('entity:icon:url', $type, $params, $url);
-
+
return elgg_normalize_url($url);
}