diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-03-03 17:53:05 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-03-03 17:53:05 +0000 |
commit | 4766f36a4d74924f21ff329c4318ce4e069ffa04 (patch) | |
tree | 969b84632f2a8b0db79788a8a6db8e41d63e5cb4 /dashboard/latest.php | |
parent | 57a217fd6b708844407486046a1faa23b46cac08 (diff) | |
download | elgg-4766f36a4d74924f21ff329c4318ce4e069ffa04.tar.gz elgg-4766f36a4d74924f21ff329c4318ce4e069ffa04.tar.bz2 |
Pulled in the interface changes.
git-svn-id: http://code.elgg.org/elgg/trunk@5257 36083f99-b078-4883-b0ff-0f9b5a30f544
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); |