aboutsummaryrefslogtreecommitdiff
path: root/mod/riverdashboard
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-03-09 11:33:24 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-03-09 11:33:24 +0000
commitf570341c39f59b5c0359ad9c429f73f94101fa02 (patch)
tree2050d54cad99aa2afe73eedbb71a5aa7464cf940 /mod/riverdashboard
parent61071fdef2241e5032426f1634a3ddfd84c758f5 (diff)
downloadelgg-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')
-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'));
}