diff options
Diffstat (limited to 'actions')
-rw-r--r-- | actions/login.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/actions/login.php b/actions/login.php index 4d4f3c098..95c90ce7e 100644 --- a/actions/login.php +++ b/actions/login.php @@ -29,7 +29,14 @@ if ($result) {
system_message(elgg_echo('loginok'));
- forward("pg/dashboard/");
+ if ($_SESSION['last_forward_from']) + { + $forward_url = $_SESSION['last_forward_from']; + $_SESSION['last_forward_from'] = ""; + forward($forward_url); + } + else + forward("pg/dashboard/");
} else {
register_error(elgg_echo('loginerror'));
}
|