From: Arthur Schiwon Date: Mon, 20 Feb 2012 10:21:46 +0000 (+0100) Subject: load apps before logout so that logout-hook works X-Git-Tag: v4.0.0beta~201^2~32 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=30d524b4260fe3e920b6be1f3818a0fbcbb5adfc;p=nextcloud-server.git load apps before logout so that logout-hook works --- diff --git a/index.php b/index.php index 18ea3022bc5..b4cac1879c6 100644 --- a/index.php +++ b/index.php @@ -51,6 +51,7 @@ if($_SERVER['REQUEST_METHOD']=='PROPFIND'){ // Someone is logged in : elseif(OC_User::isLoggedIn()) { if(isset($_GET["logout"]) and ($_GET["logout"])) { + OC_App::loadApps(); OC_User::logout(); header("Location: ".OC::$WEBROOT.'/'); exit(); @@ -80,7 +81,7 @@ else { OC_User::unsetMagicInCookie(); } } - + // Someone wants to log in : elseif(isset($_POST["user"]) && isset($_POST['password'])) { if(OC_User::login($_POST["user"], $_POST["password"])) {