diff options
author | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-04-27 13:11:22 +0000 |
---|---|---|
committer | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-04-27 13:11:22 +0000 |
commit | c56951806336ceb6bfae31f53b62bdfb72ee09ff (patch) | |
tree | a7b970fd3b5c305fcd0c8568357a1a18f9d1ca0b /index.php | |
parent | 7de3ef5f7245709b141e8c39f6cc22fce212f09c (diff) | |
download | elgg-c56951806336ceb6bfae31f53b62bdfb72ee09ff.tar.gz elgg-c56951806336ceb6bfae31f53b62bdfb72ee09ff.tar.bz2 |
if the activity stream is enabled show on the frontpage, if not, list entities.
git-svn-id: http://code.elgg.org/elgg/trunk@5904 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -34,7 +34,10 @@ if (!trigger_plugin_hook('index', 'system', null, FALSE)) { $title = elgg_view_title(elgg_echo('content:latest')); set_context('search'); $offset = (int)get_input('offset', 0); - $activity = elgg_list_registered_entities(array('limit' => 10, 'offset' => $offset, 'full_view' => FALSE, 'allowed_types' => array('object','group'))); + if(is_plugin_enabled('riverdashboard')) + $activity = elgg_view_river_items(0, 0, '', '', '', '', 10, 0, 0, true, true); + else + $activity = elgg_list_registered_entities(array('limit' => 10, 'offset' => $offset, 'full_view' => FALSE, 'allowed_types' => array('object','group'))); set_context('main'); global $autofeed; $autofeed = FALSE; |