aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-16 15:09:56 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-16 15:09:56 +0000
commit6af05fd46c738c48ddb8d895087fca64075b280a (patch)
tree4b7ac5a02901cd525703f041e179328d5cf45f59
parent62afaa85ece1ce8859593cc2cdc957a26b309436 (diff)
downloadelgg-6af05fd46c738c48ddb8d895087fca64075b280a.tar.gz
elgg-6af05fd46c738c48ddb8d895087fca64075b280a.tar.bz2
No need for elgg_view_entity to separately load the owner entity
git-svn-id: https://code.elgg.org/elgg/trunk@478 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--engine/lib/elgglib.php2
-rw-r--r--mod/blog/views/default/object/blog.php2
2 files changed, 1 insertions, 3 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index 94959496e..ccecd69ec 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -195,11 +195,9 @@
if (!isset($entity_class)) return false;
$subtype = $entity->getSubtype();
- $owner = get_entity($entity->getOwner());
return elgg_view("{$entity_type}/{$subtype}",array(
'entity' => $entity,
- 'entity_owner' => $owner,
'full' => $full
), $viewtype, $bypass, $debug);
diff --git a/mod/blog/views/default/object/blog.php b/mod/blog/views/default/object/blog.php
index 0317f952f..58adcfe80 100644
--- a/mod/blog/views/default/object/blog.php
+++ b/mod/blog/views/default/object/blog.php
@@ -28,7 +28,7 @@
?>
</span>
- <a href="<?php echo $vars['url']; ?>blog/<?php echo $vars['entity_owner']->username; ?>"><?php echo $vars['entity_owner']->name; ?></a>
+ <a href="<?php echo $vars['url']; ?>blog/<?php echo $vars['entity']->getOwnerEntity()->username; ?>"><?php echo $vars['entity']->getOwnerEntity()->name; ?></a>
</p>
<p>
<?php