]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
if the activity stream is enabled show on the frontpage, if not, list entities.
authordave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 27 Apr 2010 13:11:22 +0000 (13:11 +0000)
committerdave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 27 Apr 2010 13:11:22 +0000 (13:11 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@5904 36083f99-b078-4883-b0ff-0f9b5a30f544

index.php

index 49f9abd9272ef4a492fb33ced63635229c35bd4e..72ae9b616a3dd7bc3ca3f6ca06155552fb4a3214 100644 (file)
--- 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;