aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/entities.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/entities.php')
-rw-r--r--engine/lib/entities.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php
index bd42a9edb..3a6e3c035 100644
--- a/engine/lib/entities.php
+++ b/engine/lib/entities.php
@@ -1853,7 +1853,8 @@
case 'master':
case 'large' : $size = 'large'; break;
- case 'topbar' :
+ case 'topbar' : $size = 'topbar'; break;
+
case 'tiny' : $size = 'tiny'; break;
case 'small' : $size = 'small'; break;
@@ -1864,10 +1865,10 @@
$url = false;
- $viewtype = elgg_get_viewtype();
+ $viewtype = elgg_get_viewtype();
// Step one, see if anyone knows how to render this in the current view
- $url = trigger_plugin_hook('entity:icon:url', $type, array('entity' => $entity, 'viewtype' => $viewtype, 'size' => $size), $url);
+ $url = trigger_plugin_hook('entity:icon:url', $entity->getType(), array('entity' => $entity, 'viewtype' => $viewtype, 'size' => $size), $url);
if(!@getimagesize($url))
$url = false; // If not exist then don't use the url