aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/index.php b/index.php
index 49f9abd92..72ae9b616 100644
--- a/index.php
+++ b/index.php
@@ -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;