diff options
| author | Savetheinternet <savetheinternet@n0v4.com> | 2011-02-16 19:59:13 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@n0v4.com> | 2011-02-16 19:59:13 +1100 |
| commit | a655d930d014527f8bc05afdc75d3187b6b14117 (patch) | |
| tree | aeff703996ae847aea9e57170cab66ceecd0843f /inc/display.php | |
| parent | 8d6c3d655dc92ee00c5c48f15b818cf0b55d8137 (diff) | |
Return to page if mod clicked on a link to a moderator page but was not logged in
Diffstat (limited to 'inc/display.php')
| -rw-r--r-- | inc/display.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/inc/display.php b/inc/display.php index acf77e39..9186b47a 100644 --- a/inc/display.php +++ b/inc/display.php @@ -37,7 +37,7 @@ ))); } - function loginForm($error=false, $username=false) { + function loginForm($error=false, $username=false, $redirect=false) { global $config; if(function_exists('sql_close')) sql_close(); @@ -47,7 +47,8 @@ 'body'=>Element('login.html', Array( 'index'=>$config['root'], 'error'=>$error, - 'username'=>$username + 'username'=>$username, + 'redirect'=>$redirect ) ) ))); |
