# HG changeset patch # User Dan # Date 1253433576 14400 # Node ID 4d8ffe107a0dcfc26bcabbb1b700b1aa97799157 # Parent 220428d809256a18c414727dc39d0bcdf5e08fd2 Login: if return-to specified and already logged in, jump to return-to instead of main page. diff -r 220428d80925 -r 4d8ffe107a0d plugins/SpecialUserFuncs.php --- a/plugins/SpecialUserFuncs.php Sun Sep 20 02:52:24 2009 -0400 +++ b/plugins/SpecialUserFuncs.php Sun Sep 20 03:59:36 2009 -0400 @@ -144,7 +144,14 @@ $level = USER_LEVEL_MEMBER; } if ( $level <= USER_LEVEL_MEMBER && $session->user_logged_in ) + { + if ( $target = $paths->getAllParams() ) + { + redirect(makeUrl($target), '', '', 0); + } $paths->main_page(); + } + $template->header(); echo '
'; $header = ( $level > USER_LEVEL_MEMBER ) ? $lang->get('user_login_message_short_elev') : $lang->get('user_login_message_short');