From: Robin Appelman Date: Sat, 16 Apr 2011 11:24:26 +0000 (+0200) Subject: redirect to owncloud root after logout X-Git-Tag: v3.0~267^2~558^2~146 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=50035f5a923de5e9dea75291df55a8c505291386;p=nextcloud-server.git redirect to owncloud root after logout --- diff --git a/index.php b/index.php index 2f56510bfbb..89c24cac52f 100644 --- 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" ));