diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-04-21 16:14:28 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-04-21 16:14:28 +0000 |
commit | e14beb4681147ab97c00c9969926bb760475b599 (patch) | |
tree | 00cbc414f8de1dc3e2405d94fc2f06f41609375a /engine | |
parent | d3f088807f5b85186bdee00a3d192a4def9c86a2 (diff) | |
download | elgg-e14beb4681147ab97c00c9969926bb760475b599.tar.gz elgg-e14beb4681147ab97c00c9969926bb760475b599.tar.bz2 |
Fixed an inconsistency in elgg_view_entity
git-svn-id: https://code.elgg.org/elgg/trunk@505 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r-- | engine/lib/elgglib.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php index ccecd69ec..2f9396da1 100644 --- a/engine/lib/elgglib.php +++ b/engine/lib/elgglib.php @@ -195,6 +195,7 @@ if (!isset($entity_class)) return false;
$subtype = $entity->getSubtype();
+ if (empty($subtype)) { $subtype = $entity_type; }
return elgg_view("{$entity_type}/{$subtype}",array(
'entity' => $entity,
|