]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #2664: elgg_view_entity subtype defaults to "default" rather than $type
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>
Wed, 24 Nov 2010 23:36:31 +0000 (23:36 +0000)
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>
Wed, 24 Nov 2010 23:36:31 +0000 (23:36 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@7441 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/lib/views.php

index 0c9e83bab38eb2bda6010743259a2e81e61348c6..bf133f592782cb776b896e5215b8fbe472e28479 100644 (file)
@@ -710,7 +710,7 @@ function elgg_view_entity(ElggEntity $entity, $full = false, $bypass = true, $de
 
        $subtype = $entity->getSubtype();
        if (empty($subtype)) {
-               $subtype = $entity_type;
+               $subtype = 'default';
        }
 
        $contents = '';