diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-25 12:52:48 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-25 12:52:48 +0000 |
commit | 98b32177eb900e779fd2c7976b1e77fb9dd77d63 (patch) | |
tree | 9fb2e5802f39fbff1ac2024be786c4a142db772a /views/default/river | |
parent | 5439a340e623ccf17ce2a6b59cf31862beb2ba68 (diff) | |
download | elgg-98b32177eb900e779fd2c7976b1e77fb9dd77d63.tar.gz elgg-98b32177eb900e779fd2c7976b1e77fb9dd77d63.tar.bz2 |
The river now passes entities to each river view as $vars['entity']
git-svn-id: https://code.elgg.org/elgg/trunk@1123 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/river')
-rw-r--r-- | views/default/river/wrapper.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/views/default/river/wrapper.php b/views/default/river/wrapper.php index 957cbcc78..78692eaef 100644 --- a/views/default/river/wrapper.php +++ b/views/default/river/wrapper.php @@ -11,10 +11,10 @@ * @link http://elgg.com/
*/
- if (isset($vars['object']) && $vars['object'] instanceof ElggEntity) {
+ if (isset($vars['entity']) && $vars['entity'] instanceof ElggEntity) {
- $subtype = $vars['object']->subtype;
- if (empty($subtype)) $subtype = $vars['object']->type;
+ $subtype = $vars['entity']->subtype;
+ if (empty($subtype)) $subtype = $vars['entity']->type;
if (empty($subtype)) $subtype = "general";
}
|