aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2012-11-22 17:13:14 +0100
committerSem <sembrestels@riseup.net>2012-11-22 17:13:14 +0100
commit65b76e76643c47215b307866b6803004e1b41577 (patch)
treeb981beebcaf34ba42105fc0873639cc9be070b9c
parentfa825c5d41abf52153c50137d31dfc086c9f154d (diff)
downloadelgg-65b76e76643c47215b307866b6803004e1b41577.tar.gz
elgg-65b76e76643c47215b307866b6803004e1b41577.tar.bz2
Forward to dashboard when login.
-rw-r--r--start.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/start.php b/start.php
index 17646dad6..47343f273 100644
--- a/start.php
+++ b/start.php
@@ -1,6 +1,12 @@
<?php
function profile_widgets_init() {
+
+ // Set dashboard as default page after login
+ if (elgg_is_active_plugin('dashboard') && !isset($_SESSION['last_forward_from'])) {
+ $_SESSION['last_forward_from'] = 'dashboard';
+ }
+
elgg_register_widget_type('thewirewrite', elgg_echo('thewire:add'), elgg_echo("thewire:yourdesc:write:desc"), 'dashboard');
}