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.php11
1 files changed, 4 insertions, 7 deletions
diff --git a/mod/riverdashboard/start.php b/mod/riverdashboard/start.php
index c57d88d80..b95c2654d 100644
--- a/mod/riverdashboard/start.php
+++ b/mod/riverdashboard/start.php
@@ -8,12 +8,9 @@
function riverdashboard_init() {
global $CONFIG;
// Register and optionally replace the dashboard
- if (get_plugin_setting('useasdashboard', 'riverdashboard') == 'yes') {
- register_page_handler('dashboard','riverdashboard_page_handler');
- } else {
- // Activity main menu
- add_menu(elgg_echo('activity'), $CONFIG->wwwroot . "mod/riverdashboard/");
- }
+ register_page_handler('dashboard','riverdashboard_page_handler');
+ add_menu(elgg_echo('activity'), $CONFIG->wwwroot . "mod/riverdashboard/");
+
// Page handler
register_page_handler('riverdashboard','riverdashboard_page_handler');
elgg_extend_view('css','riverdashboard/css');
@@ -75,4 +72,4 @@ function riverdashboard_ecml_keywords_hook($hook, $type, $value, $params) {
return $value;
}
-register_elgg_event_handler('init', 'system', 'riverdashboard_init'); \ No newline at end of file
+register_elgg_event_handler('init', 'system', 'riverdashboard_init');