From 84b310939e46e6284dc888670e32f6c7f6be0f74 Mon Sep 17 00:00:00 2001 From: Colin Finck Date: Mon, 9 Jul 2018 20:44:43 +0200 Subject: [PATCH] [WIKI] Simplify doing the RosLogin user logout. --- .../wiki/extensions/RosLogin/RosLoginHooks.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/www/www.reactos.org/wiki/extensions/RosLogin/RosLoginHooks.php b/www/www.reactos.org/wiki/extensions/RosLogin/RosLoginHooks.php index d78cfc91..1e0c9a94 100644 --- a/www/www.reactos.org/wiki/extensions/RosLogin/RosLoginHooks.php +++ b/www/www.reactos.org/wiki/extensions/RosLogin/RosLoginHooks.php @@ -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; } }