From f570341c39f59b5c0359ad9c429f73f94101fa02 Mon Sep 17 00:00:00 2001 From: ben Date: Mon, 9 Mar 2009 11:33:24 +0000 Subject: Some tweaks to river dashboard, including proper language usage. git-svn-id: https://code.elgg.org/elgg/trunk@3135 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/riverdashboard/start.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'mod/riverdashboard/start.php') diff --git a/mod/riverdashboard/start.php b/mod/riverdashboard/start.php index 5da7f3122..e5db5f9b9 100644 --- a/mod/riverdashboard/start.php +++ b/mod/riverdashboard/start.php @@ -15,20 +15,21 @@ global $CONFIG; // Register and optionally replace the dashboard - if (get_plugin_setting('useasdashboard', 'riverdashboard') == 'yes') + if (get_plugin_setting('useasdashboard', 'riverdashboard') == 'yes') { register_page_handler('dashboard','riverdashboard_page_handler'); + } else { + // Activity main menu + if (isloggedin()) + { + add_menu(elgg_echo('activity'), $CONFIG->wwwroot . "mod/riverdashboard/"); + } + } // Page handler register_page_handler('riverdashboard','riverdashboard_page_handler'); extend_view('css','riverdashboard/css'); - // Activity main menu - if (isloggedin()) - { - add_menu(elgg_echo('Activity'), $CONFIG->wwwroot . "mod/riverdashboard/"); - } - add_widget_type('river_widget',elgg_echo('river:widget:title'), elgg_echo('river:widget:description')); } -- cgit v1.2.3