From 1f2737677e002d12a4bc261743aa46db5affc40b Mon Sep 17 00:00:00 2001 From: ben Date: Tue, 24 Jun 2008 12:41:43 +0000 Subject: A fix to the river function. git-svn-id: https://code.elgg.org/elgg/trunk@1101 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/river.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/engine/lib/river.php b/engine/lib/river.php index 5a18fb34e..7bbf85710 100644 --- a/engine/lib/river.php +++ b/engine/lib/river.php @@ -84,11 +84,12 @@ $by_user_obj = get_entity($log->performed_by_guid); } if ($object instanceof ElggEntity) { - $subtype = $object->subtype; + $subtype = $object->getSubtype(); } else { $subtype = ""; } - if (!empty($subtype) && elgg_view_exists("river/{$subtype}/event")) { + + if (!empty($subtype) && elgg_view_exists("river/{$subtype}/event")) { $tam = elgg_view("river/{$subtype}/$event", array( 'performed_by' => $by_user_obj, 'log_entry' => $log, -- cgit v1.2.3