]> source.dussan.org Git - nextcloud-server.git/commitdiff
load apps before logout so that logout-hook works
authorArthur Schiwon <blizzz@owncloud.com>
Mon, 20 Feb 2012 10:21:46 +0000 (11:21 +0100)
committerArthur Schiwon <blizzz@owncloud.com>
Mon, 20 Feb 2012 10:21:46 +0000 (11:21 +0100)
index.php

index 18ea3022bc5dcd7489eb14ce3b50e93ae746ad25..b4cac1879c6797f177e00dc6cad769f90f73b268 100644 (file)
--- 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"])) {