forked from leftypol/leftypol
Return to page if mod clicked on a link to a moderator page but was not logged in
This commit is contained in:
parent
8d6c3d655d
commit
a655d930d0
3 changed files with 14 additions and 9 deletions
|
@ -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
|
||||
)
|
||||
)
|
||||
)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue