]> source.dussan.org Git - nextcloud-server.git/commitdiff
redirect to owncloud root after logout
authorRobin Appelman <icewind1991@gmail.com>
Sat, 16 Apr 2011 11:24:26 +0000 (13:24 +0200)
committerRobin Appelman <icewind1991@gmail.com>
Sat, 16 Apr 2011 11:24:26 +0000 (13:24 +0200)
index.php

index 2f56510bfbb111e52e2647326cfbc5820a39e3a8..89c24cac52ff64ed562dd9360d565fc666bd0625 100644 (file)
--- a/index.php
+++ b/index.php
@@ -29,7 +29,8 @@ var_dump( $_SESSION );
 if( OC_USER::isLoggedIn()){
        if( $_GET["logout"] ){
                OC_USER::logout();
-               OC_TEMPLATE::printGuestPage( "", "logout" );
+               header( "Location: $WEBROOT");
+               exit();
        }
        else{
                header( "Location: ".OC_APPCONFIG::getValue( "core", "defaultpage", "files/index.php" ));