diff options
-rw-r--r-- | engine/lib/river.php | 5 |
1 files 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,
|