aboutsummaryrefslogtreecommitdiff
path: root/mod/riverdashboard/start.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/riverdashboard/start.php')
-rw-r--r--mod/riverdashboard/start.php15
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'));
}