diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-30 04:18:42 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-30 04:18:42 +0000 |
commit | 062509670573151a9ab74404073e919aaa333268 (patch) | |
tree | dc22c2220da6ddb18fe4dc25cbaccd12720655dd /engine/lib | |
parent | c96af4a469b6e990ac3067ad691b46822deadf30 (diff) | |
download | elgg-062509670573151a9ab74404073e919aaa333268.tar.gz elgg-062509670573151a9ab74404073e919aaa333268.tar.bz2 |
required for river rss to work
git-svn-id: http://code.elgg.org/elgg/trunk@7767 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-rw-r--r-- | engine/lib/views.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engine/lib/views.php b/engine/lib/views.php index eff5df394..87d1a3836 100644 --- a/engine/lib/views.php +++ b/engine/lib/views.php @@ -1064,7 +1064,8 @@ function elgg_view_image_block($image, $body, $vars = array()) { * @return string|false Depending on success */ function elgg_view_river_item($item) { - if (!$item || !$item->getView() || !elgg_view_exists($item->getView())) { + // checking default viewtype since some viewtypes do not have unique views per item (rss) + if (!$item || !$item->getView() || !elgg_view_exists($item->getView(), 'default')) { return ''; } |