diff options
| author | Michael Save <savetheinternet@tinyboard.org> | 2013-01-29 22:11:33 +1100 |
|---|---|---|
| committer | Michael Save <savetheinternet@tinyboard.org> | 2013-01-29 22:11:33 +1100 |
| commit | e5bf2a91fc87c4a72885e40114b113daf740b17b (patch) | |
| tree | a09aed233ace2e5179f629cf459968716b07c80a /inc/mod/pages.php | |
| parent | 1ad71b33e21f4088f7dfae64b1efa3df3a9d8feb (diff) | |
Don't always redirect to dashboard on login
Diffstat (limited to 'inc/mod/pages.php')
| -rw-r--r-- | inc/mod/pages.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/inc/mod/pages.php b/inc/mod/pages.php index cf06e7d9..0ea97fe8 100644 --- a/inc/mod/pages.php +++ b/inc/mod/pages.php @@ -28,7 +28,7 @@ function mod_page($title, $template, $args, $subtitle = false) { ); } -function mod_login() { +function mod_login($redirect = false) { global $config; $args = array(); @@ -49,7 +49,10 @@ function mod_login() { // Set cookies setCookies(); - header('Location: ?/', true, $config['redirect_http']); + if ($redirect) + header('Location: ?' . $redirect, true, $config['redirect_http']); + else + header('Location: ?/', true, $config['redirect_http']); } } |
