diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-05 15:28:39 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-05 15:28:39 +0000 |
commit | 321d737a3d1b515327e322a3059b933d555eff86 (patch) | |
tree | 2ef6fed300271e6522f203357d35541931476fb5 /actions/login.php | |
parent | 9db74f4db6957383e9bdf68bbab61a669b435fa8 (diff) | |
download | elgg-321d737a3d1b515327e322a3059b933d555eff86.tar.gz elgg-321d737a3d1b515327e322a3059b933d555eff86.tar.bz2 |
Closes #196: Stores last forwarded page in session, this is used by logon to forward page to correct location.
Also fixed current_page_url() which was introducing a superfluous "/" before $_SERVER['REQUEST_URI']
git-svn-id: https://code.elgg.org/elgg/trunk@1712 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'actions/login.php')
-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'));
}
|