aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mod/sitepages/index.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/mod/sitepages/index.php b/mod/sitepages/index.php
index 2a714926a..ff21ec97f 100644
--- a/mod/sitepages/index.php
+++ b/mod/sitepages/index.php
@@ -15,10 +15,12 @@ $content = elgg_view('sitepages/welcome');
$content .= elgg_view_title(elgg_echo('content:latest'));
set_context('search');
$offset = (int)get_input('offset', 0);
-if(is_plugin_enabled('riverdashboard'))
- $content .= elgg_view_river_items(0, 0, "", "", "", '', 10, 0, 0, true, false);
-else
+if(is_plugin_enabled('riverdashboard')){
+ $items = elgg_view_river_items(0, 0, "", "", "", '', 10, 0, 0, true, false);
+ $content .= elgg_view('riverdashboard/container', array('body' => $items . elgg_view('riverdashboard/js')));
+}else{
$content .= elgg_list_registered_entities(array('limit' => 10, 'offset' => $offset, 'full_view' => FALSE, 'allowed_types' => array('object','group')));
+}
set_context('main');
global $autofeed;
$autofeed = FALSE;