From 4766f36a4d74924f21ff329c4318ce4e069ffa04 Mon Sep 17 00:00:00 2001 From: brettp Date: Wed, 3 Mar 2010 17:53:05 +0000 Subject: Pulled in the interface changes. git-svn-id: http://code.elgg.org/elgg/trunk@5257 36083f99-b078-4883-b0ff-0f9b5a30f544 --- dashboard/latest.php | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'dashboard/latest.php') 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); -- cgit v1.2.3