aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-rw-r--r--mod/riverdashboard/languages/en.php3
-rw-r--r--mod/riverdashboard/start.php15
2 files changed, 10 insertions, 8 deletions
diff --git a/mod/riverdashboard/languages/en.php b/mod/riverdashboard/languages/en.php
index 81f66ab57..ac64009e1 100644
--- a/mod/riverdashboard/languages/en.php
+++ b/mod/riverdashboard/languages/en.php
@@ -5,7 +5,8 @@
'mine' => 'Mine',
'filter' => 'Filter',
'riverdashboard:useasdashboard' => "Replace the default dashboard with this activity river?",
-
+ 'activity' => 'Activity',
+
/**
* Site messages
**/
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'));
}