diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-05-30 10:23:24 -0400 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-05-30 10:23:24 -0400 |
commit | c501b7b9259b6fc8c34655b870ce79f102ada137 (patch) | |
tree | 00eaba024ac6c4021262d8f6628977a560df0159 /actions/login.php | |
parent | 9210f956332d5fcd786dd3ec757e6fd789f9a1ad (diff) |
interim commit after pull from server
darcs-hash:20080530142324-84dde-782c9f04f551447514f1557b9e80f8461a17771f.gz
Diffstat (limited to 'actions/login.php')
-rw-r--r-- | actions/login.php | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/actions/login.php b/actions/login.php index 9f9c473b5..d25d59cf7 100644 --- a/actions/login.php +++ b/actions/login.php @@ -44,9 +44,16 @@ class LoginAction extends Action { return; } # success! - common_redirect(common_local_url('all', - array('nickname' => - $nickname))); + $url = common_get_returnto(); + if ($url) { + # We don't have to return to it again + common_set_returnto(NULL); + } else { + $url = common_local_url('all', + array('nickname' => + $nickname)); + } + common_redirect($url); } else { $this->show_form(_t('Incorrect username or password.')); } |