mirror of
https://github.com/reactos/web.git
synced 2024-11-23 03:39:49 +00:00
[WIKI] Simplify doing the RosLogin user logout.
This commit is contained in:
parent
ca4b822ae3
commit
84b310939e
@ -14,9 +14,8 @@
|
||||
}
|
||||
|
||||
public static function onUserLogout(&$user) {
|
||||
global $wgOut;
|
||||
$redirect = array_key_exists("returnto", $_GET) ? "/wiki/index.php?title=" . $_GET["returnto"] : "/wiki";
|
||||
$wgOut->redirect("/roslogin/?a=logout&redirect=" . rawurlencode($redirect));
|
||||
$rl = new RosLogin();
|
||||
$rl->logout();
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user