diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-24 12:41:43 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-24 12:41:43 +0000 |
commit | 1f2737677e002d12a4bc261743aa46db5affc40b (patch) | |
tree | e2503f6990424dfb1ccd2e1501b14823b820bb6a /engine/lib | |
parent | 49b9a706d2dfa56312627887bdb8bedb0410ec8b (diff) | |
download | elgg-1f2737677e002d12a4bc261743aa46db5affc40b.tar.gz elgg-1f2737677e002d12a4bc261743aa46db5affc40b.tar.bz2 |
A fix to the river function.
git-svn-id: https://code.elgg.org/elgg/trunk@1101 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-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,
|