[WIKI] Simplify doing the RosLogin user logout.

This commit is contained in:
Colin Finck 2018-07-09 20:44:43 +02:00
parent ca4b822ae3
commit 84b310939e

View File

@ -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;
}
}