Return to page if mod clicked on a link to a moderator page but was not logged in
This commit is contained in:
@@ -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
|
||||
)
|
||||
)
|
||||
)));
|
||||
|
Reference in New Issue
Block a user