diff options
Diffstat (limited to 'dashboard/latest.php')
-rw-r--r-- | dashboard/latest.php | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/dashboard/latest.php b/dashboard/latest.php index 2017da944..750754518 100644 --- a/dashboard/latest.php +++ b/dashboard/latest.php @@ -15,9 +15,14 @@ require_once(dirname(dirname(__FILE__)) . "/engine/start.php"); // Load the front page global $CONFIG; -$title = elgg_view_title(elgg_echo('content:latest')); -set_context('search'); -$content = elgg_list_registered_entities(array('limit' => 10, 'full_view' => FALSE, 'allowed_types' => array('object','group'))); -set_context('latest'); -$content = elgg_view_layout('two_column_left_sidebar', '', $title . $content); + +if(is_plugin_enabled('riverdashboard')) { + $title = elgg_view_title(elgg_echo('content:latest')); + set_context('search'); + $content = elgg_list_registered_entities(array('limit' => 10, 'full_view' => FALSE, 'allowed_types' => array('object','group'))); + set_context('latest'); +} else { + $content = "Riverdashboard not loaded"; +} +$content = elgg_view_layout('one_column_with_sidebar', '', $title . $content); page_draw(elgg_echo('content:latest'), $content); |