aboutsummaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authordave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-04-27 13:11:22 +0000
committerdave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-04-27 13:11:22 +0000
commitc56951806336ceb6bfae31f53b62bdfb72ee09ff (patch)
treea7b970fd3b5c305fcd0c8568357a1a18f9d1ca0b /index.php
parent7de3ef5f7245709b141e8c39f6cc22fce212f09c (diff)
downloadelgg-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.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;