diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-03-09 11:33:24 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-03-09 11:33:24 +0000 |
commit | f570341c39f59b5c0359ad9c429f73f94101fa02 (patch) | |
tree | 2050d54cad99aa2afe73eedbb71a5aa7464cf940 /mod/riverdashboard/start.php | |
parent | 61071fdef2241e5032426f1634a3ddfd84c758f5 (diff) | |
download | elgg-f570341c39f59b5c0359ad9c429f73f94101fa02.tar.gz elgg-f570341c39f59b5c0359ad9c429f73f94101fa02.tar.bz2 |
Some tweaks to river dashboard, including proper language usage.
git-svn-id: https://code.elgg.org/elgg/trunk@3135 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/riverdashboard/start.php')
-rw-r--r-- | mod/riverdashboard/start.php | 15 |
1 files changed, 8 insertions, 7 deletions
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'));
}
|